Hi Afni Experts,
I wanted to find out which version of OpenMP is used in the precompiled code (MacOSX and linux) and if it is possible to use openmp 4.5+ with AFNI built from source code? The reason I ask is that OpenMP 4.5+ supports use of GPUs for parallelization with minimal edits so I was curious to looking into this further.
Hi Rick,
Thanks for the info and quick reply. In reading further, it looks like OpenMP 4.0 and above will work for offloading to the GPU instead of CPU. I’m looking into implementing this on our HPC environment (RedHat) and further down the line a docker or singularity container. For the container route I was initially looking at CentOS since it aligns better to RHEL but I’m not tied to it if you have any recommendations.
Just curious, is there any work on this front of adding a switch to some of the more computationally heavy components (e.g. nonlinear warping) to utilize a GPU if present otherwise fallback to CPU parallelization in OpenMP or using something like CUDA (NVIDIA cards only) or OpenACC(opens it up to AMD etc) directly if a GPU is detected?
Thanks,
Ajay
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.