Browse Source

FindOpenMP: Add support for NVHPC compiler

Tin Huynh 5 years ago
parent
commit
90502d76b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/FindOpenMP.cmake

+ 1 - 0
Modules/FindOpenMP.cmake

@@ -117,6 +117,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
     set(OMP_FLAG_PathScale "-openmp")
     set(OMP_FLAG_NAG "-openmp")
     set(OMP_FLAG_Absoft "-openmp")
+    set(OMP_FLAG_NVHPC "-mp")
     set(OMP_FLAG_PGI "-mp")
     set(OMP_FLAG_Flang "-fopenmp")
     set(OMP_FLAG_SunPro "-xopenmp")