time-to-botec/C
2023-06-02 16:06:17 -06:00
..
C-01-simple reorganize C code 2023-06-02 16:00:49 -06:00
C-02-better-algorithm-one-thread reorganize C code 2023-06-02 16:00:49 -06:00
out reorganize C code 2023-06-02 16:00:49 -06:00
makefile reorganize C code 2023-06-02 16:00:49 -06:00
README.md reorganize C code 2023-06-02 16:00:49 -06:00
samples.c remove old code from samples.c 2023-06-02 16:06:17 -06:00

Time to BOTEC in C

This repository contains a few implementations of a simple botec (back-of-the-envelope) calculation in C:

  • In the folder C-01-simple/, you can see a simple implementation, which passes large arrays
  • In the folder C-02-better-algorithm-one-thread/ you can see a better implementations, that passes around pointers to functions, which makes the implementation more efficient
  • In the top level, you can see an implementation that uses the better implementation in C-02..., and that also implements multithreading using OpenMP

To do

  • Update repository with correct timing
  • Add Windows/Powershell time-measuring commands
  • Add CUDA?
  • Use better profiling approach to capture timing with 1M samples.
  • See if program can be reworded so as to use multithreading effectively, e.g., so that you see speed gains proportional to the number of threads used