No access to OpenMP 5 in GCC 10.3.0

Danial POUR ARAB danialpourarab@gmail.com
Mon Jun 21 07:07:58 GMT 2021


Hello,

I want to use OpenMP in GCC 10.3.0 but it only recognizes OpenMP 4.5. Do
you know how I can activate OpenMP 5 ?

I installed and loaded GCC 10.3.0 via Spack :

   - $ Spack install gcc@10.3.0 +nvptx
   - $ Spack load gcc@10.3.0

I set  OMP_DISPLAY_ENV to  TRUE and I've got the following message:

OPENMP DISPLAY ENVIRONMENT BEGIN
  _OPENMP = '201511'
  OMP_DYNAMIC = 'FALSE'
  OMP_NESTED = 'FALSE'
  OMP_NUM_THREADS = '12'
  OMP_SCHEDULE = 'DYNAMIC'
  OMP_PROC_BIND = 'FALSE'
  OMP_PLACES = ''
  OMP_STACKSIZE = '0'
  OMP_WAIT_POLICY = 'PASSIVE'
  OMP_THREAD_LIMIT = '4294967295'
  OMP_MAX_ACTIVE_LEVELS = '2147483647'
  OMP_CANCELLATION = 'FALSE'
  OMP_DEFAULT_DEVICE = '0'
  OMP_MAX_TASK_PRIORITY = '0'
  OMP_DISPLAY_AFFINITY = 'FALSE'
  OMP_AFFINITY_FORMAT = 'level %L thread %i affinity %A'
OPENMP DISPLAY ENVIRONMENT END

My system info is :

   - Intel® Xeon(R) W-2135 CPU @ 3.70GHz × 12
   - NVIDIA Quadro P2000/PCIe/SSE2
   - Debian GNU/Linux 10 (buster)

Thank you in advance for your help.

Best regards,
Danial


More information about the Gcc-help mailing list