Skip to content

Commit db9a681

Browse files
committed
Allow users to pass empty AMDGCN list
This allows users to handle cases like LLVM, where building with GPU support is optional, but users might still want to install the software without GPU support. Signed-off-by: Jan Andre Reuter <[email protected]>
1 parent 93cb538 commit db9a681

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

easybuild/tools/options.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ def validate(self):
999999
# Support accelerators using the gfx[...] naming scheme.
10001000
# This applies to all AMD GPUs since Southern Islands (2013)
10011001
# For more information: https://llvm.org/docs/AMDGPUUsage.html#processors
1002+
# Allow users to pass --amdgcn-capabilities=, which will be mapped to not passing any
1003+
if self.options.amdgcn_capabilities == ['']:
1004+
self.options.amdgcn_capabilities = None
10021005
if self.options.amdgcn_capabilities:
10031006
# General accelerator naming convention
10041007
amdgcn_cc_regex = re.compile(r'gfx[0-9]+[a-z]?$')

0 commit comments

Comments
 (0)