Skip to content

Commit 03e02e6

Browse files
committed
[ci skip]
1 parent 26823fc commit 03e02e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def get_extensions():
3333
extra_compile_args = {'cxx': ['-O2']}
3434
extra_link_args = ['-s']
3535

36+
if sys.platform == 'win32':
37+
extra_compile_args['cxx'].append('/Zm500')
38+
3639
info = parallel_info()
3740
if ('backend: OpenMP' in info and 'OpenMP not found' not in info
3841
and sys.platform != 'darwin'):
@@ -50,6 +53,8 @@ def get_extensions():
5053
nvcc_flags = [] if nvcc_flags == '' else nvcc_flags.split(' ')
5154
nvcc_flags += ['--expt-relaxed-constexpr', '-O2']
5255
extra_compile_args['nvcc'] = nvcc_flags
56+
if sys.platform == 'win32':
57+
extra_compile_args['nvcc'].append('/Zm500')
5358

5459
name = main.split(os.sep)[-1][:-4]
5560
sources = [main]

0 commit comments

Comments
 (0)