Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimisation_Examples

Major Speed Up

  • Compiler Optimisation (Magic);
  • Pass by reference;
  • Parralelism (OpenMP MPI GP-GPU);
  • Algorithmic optimisation.

Other Considerations

  • Use cach-friendly data structures (contiguous in memory);
  • Use stack varibles where possible (allocation and deallocation is faster on stack);
  • Reduce number of function calls (inline small functions);

Compilation

g++ ./src/main.cpp ./src/functions.cpp -o main -I ./src/ -O3 -std=c++20 -fopenmp

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages