We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c11c51 commit 56865afCopy full SHA for 56865af
setup.py
@@ -3,15 +3,19 @@
3
4
build_cuda = cpp_extension.CUDA_HOME != None
5
6
+CXX_FLAGS = ['-fopenmp']
7
+NVCC_FLAGS = ['--expt-extended-lambda', '-Xcompiler', '-fopenmp']
8
+
9
if build_cuda:
10
csprng_ext = cpp_extension.CUDAExtension(
11
'torch_csprng', ['csprng.cu'],
12
extra_compile_args={'cxx': [],
- 'nvcc': ['-O2', '--expt-extended-lambda']}
13
+ 'nvcc': NVCC_FLAGS}
14
)
15
else:
16
csprng_ext = cpp_extension.CppExtension(
- 'torch_csprng', ['csprng.cpp']
17
+ 'torch_csprng', ['csprng.cpp'],
18
+ extra_compile_args={'cxx': CXX_FLAGS}
19
20
21
setup(name='pytorch_csprng',
0 commit comments