Skip to content

Commit d99d4ac

Browse files
committed
Correctly put dash in front of gencode instead of arch for CUDA
1 parent e16de3b commit d99d4ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/toolchains/compiler/cuda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ def _set_compiler_flags(self):
9898

9999
# add gencode compiler flags to list of flags for compiler variables
100100
for gencode_val in self.options.get('cuda_gencode', []):
101-
gencode_option = 'gencode %s' % gencode_val
101+
gencode_option = '-gencode %s' % gencode_val
102102
self.variables.nappend('CUDA_CFLAGS', gencode_option)
103103
self.variables.nappend('CUDA_CXXFLAGS', gencode_option)

test/framework/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ def test_fft_env_vars_intel(self):
13561356
def test_fosscuda(self):
13571357
"""Test whether fosscuda is handled properly."""
13581358
tc = self.get_toolchain("fosscuda", version="2018a")
1359-
opts = {'cuda_gencode': ['-arch=compute_35,code=sm_35', '-arch=compute_10,code=compute_10'], 'openmp': True}
1359+
opts = {'cuda_gencode': ['arch=compute_35,code=sm_35', 'arch=compute_10,code=compute_10'], 'openmp': True}
13601360
tc.set_options(opts)
13611361
with self.mocked_stdout_stderr():
13621362
tc.prepare()

0 commit comments

Comments
 (0)