Skip to content

Commit 54b1055

Browse files
authored
[OpenMP] LIBOMPTARGET_DEVICE_ARCHITECTURES requires semicolons (#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.
1 parent 7b76089 commit 54b1055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openmp/docs/SupportAndFAQ.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ The Cuda SDK is required on the machine that will execute the openmp application
8181
If your build machine is not the target machine or automatic detection of the
8282
available GPUs failed, you should also set:
8383

84-
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=sm_<xy>,...`` where ``<xy>`` is the numeric
84+
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES='sm_<xy>;...'`` where ``<xy>`` is the numeric
8585
compute capability of your GPU. For instance, set
86-
``LIBOMPTARGET_DEVICE_ARCHITECTURES=sm_70,sm_80`` to target the Nvidia Volta
86+
``LIBOMPTARGET_DEVICE_ARCHITECTURES='sm_70;sm_80'`` to target the Nvidia Volta
8787
and Ampere architectures.
8888

8989

@@ -141,9 +141,9 @@ With those libraries installed, then LLVM build and installed, try:
141141
If your build machine is not the target machine or automatic detection of the
142142
available GPUs failed, you should also set:
143143

144-
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES=gfx<xyz>,...`` where ``<xyz>`` is the
144+
- ``LIBOMPTARGET_DEVICE_ARCHITECTURES='gfx<xyz>;...'`` where ``<xyz>`` is the
145145
shader core instruction set architecture. For instance, set
146-
``LIBOMPTARGET_DEVICE_ARCHITECTURES=gfx906,gfx90a`` to target AMD GCN5
146+
``LIBOMPTARGET_DEVICE_ARCHITECTURES='gfx906;gfx90a'`` to target AMD GCN5
147147
and CDNA2 devices.
148148

149149
Q: What are the known limitations of OpenMP AMDGPU offload?

0 commit comments

Comments
 (0)