Deletions are marked like this. | Additions are marked like this. |
Line 10: | Line 10: |
{{{ #ifdef _OPENMP #include <omp.h> #endif }}} |
Notes on OpenMP and Freesurfer
- in the source, grep for OPENMP in dev/utils and mri_ca_register.c for examples
Online Tutorial: https://computing.llnl.gov/tutorials/openMP/
- Conditional compilation: to speed up compilation on non OpenMP systems
#ifdef _OPENMP #include <omp.h> #endif
#ifdef _OPENMP printf(ā%d avail.processors\nā,omp_get_num_procs()); #endif