mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-21 15:26:54 +00:00
[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.
This commit is contained in:
parent
7b760894f2
commit
54b10555c3
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user