[PATCH] D116540: [OpenMP] Add nvidia as a compiler vendor for OpenMP

Saiyedul Islam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 3 08:59:42 PST 2022


saiislam created this revision.
saiislam added reviewers: jdoerfert, JonChesterfield, ye-luo, Meinersbur, tra.
Herald added subscribers: guansong, yaxunl.
saiislam requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

OpenMP Specs 5.0[1] and 5.1[2] recognizes nvidia as one of the known
compiler vendors and its absence is causing compilation error in one
of the vendor based metadirective test of sollve_vv project[3].

[1] https://www.openmp.org/wp-content/uploads/Context-Definitions-5.0-v1.0.pdf
[2] https://www.openmp.org/wp-content/uploads/OpenMP-API-Additional-Definitions-2-0.pdf
[3] https://github.com/SOLLVE/sollve_vv/blob/master/tests/5.0/metadirective/test_metadirective_arch_nvidia_or_amd.c


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116540

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPKinds.def


Index: llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
===================================================================
--- llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
+++ llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
@@ -1130,6 +1130,7 @@
 __OMP_TRAIT_PROPERTY(implementation, vendor, ibm)
 __OMP_TRAIT_PROPERTY(implementation, vendor, intel)
 __OMP_TRAIT_PROPERTY(implementation, vendor, llvm)
+__OMP_TRAIT_PROPERTY(implementation, vendor, nvidia)
 __OMP_TRAIT_PROPERTY(implementation, vendor, pgi)
 __OMP_TRAIT_PROPERTY(implementation, vendor, ti)
 __OMP_TRAIT_PROPERTY(implementation, vendor, unknown)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116540.397077.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220103/72009019/attachment.bin>


More information about the llvm-commits mailing list