Cuda Fortran: Emulation Mode

Hi all,

when in emulation mode, my program uses only 6 out of 10 available cores? Can this be changed?

Thank you
Bart

Hi Bart,

CUDA Fortran emulation mode uses our OpenMP runtime so you can effect the number of core used via the “OMP_NUM_THREADS” environment variable.

However, the runtime should use all available physical cores by default so another possibility is that you’re only using 6 blocks in which as only 6 cores would be used.

-Mat

Hi Mat,

yes, that was it. Setting “OMP_NUM_THREADS” to 10 solved the issue.

Thank you
Bart