Are the number of CPU threads for DC controlled by OMP_NUM_THREADS or ACC_NUM_CORES?

Are the number of CPU threads for do concurrent compiled with -stdpar=multicore controlled by the OMP_NUM_THREADS or the ACC_NUM_CORES environment variable?

– Ron

Hi Ron,

“ACC_NUM_CORES” is the preferred way to do this in DC, but given our multicore CPU runtime is shared by both OpenMP and OpenACC, “OMP_NUM_THREADS” should work as well. Note that by default, all cores are used so the env vars are only needed if you want to lower the thread count.

-Mat