[Openmp-commits] [openmp] [OpenMP] LIBOMPTARGET_DEVICE_ARCHITECTURES requires semicolons (PR #107454)
Joel E. Denny via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 5 12:43:49 PDT 2024
https://github.com/jdenny-ornl created https://github.com/llvm/llvm-project/pull/107454
If I use commas to delimit architectures in `LIBOMPTARGET_DEVICE_ARCHITECTURES`, cmake for the runtimes complains:
```
Unknown GPU architecture 'sm_70,sm_80,sm_90'
```
Semicolons are required instead.
>From 7842e2358debe79bbdc7358ac70e9121de48e59d Mon Sep 17 00:00:00 2001
From: "Joel E. Denny" <jdenny.ornl at gmail.com>
Date: Wed, 4 Sep 2024 20:33:32 -0400
Subject: [PATCH] [OpenMP] LIBOMPTARGET_DEVICE_ARCHITECTURES requires
semicolons
If I use commas to delimit architectures in
`LIBOMPTARGET_DEVICE_ARCHITECTURES`, cmake for the runtimes complains:
```
Unknown GPU architecture 'sm_70,sm_80,sm_90'
```
Semicolons are required instead.
---
openmp/docs/SupportAndFAQ.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/openmp/docs/SupportAndFAQ.rst b/openmp/docs/SupportAndFAQ.rst
index a158422befd07f..cd2d6a47032214 100644
--- a/openmp/docs/SupportAndFAQ.rst
+++ b/openmp/docs/SupportAndFAQ.rst
@@ -81,9 +81,9 @@ The Cuda SDK is required on the machine that will execute the openmp application
If your build machine is not the target machine or automatic detection of the
available GPUs failed, you should also set:
-- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=sm_<xy>,...`` where ``<xy>`` is the numeric
+- ``LIBOMPTARGET_DEVICE_ARCHITECTURES='sm_<xy>;...'`` where ``<xy>`` is the numeric
compute capability of your GPU. For instance, set
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=sm_70,sm_80`` to target the Nvidia Volta
+ ``LIBOMPTARGET_DEVICE_ARCHITECTURES='sm_70;sm_80'`` to target the Nvidia Volta
and Ampere architectures.
@@ -141,9 +141,9 @@ With those libraries installed, then LLVM build and installed, try:
If your build machine is not the target machine or automatic detection of the
available GPUs failed, you should also set:
-- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=gfx<xyz>,...`` where ``<xyz>`` is the
+- ``LIBOMPTARGET_DEVICE_ARCHITECTURES='gfx<xyz>;...'`` where ``<xyz>`` is the
shader core instruction set architecture. For instance, set
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=gfx906,gfx90a`` to target AMD GCN5
+ ``LIBOMPTARGET_DEVICE_ARCHITECTURES='gfx906;gfx90a'`` to target AMD GCN5
and CDNA2 devices.
Q: What are the known limitations of OpenMP AMDGPU offload?
More information about the Openmp-commits
mailing list