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 f65108b commit 661d1a0Copy full SHA for 661d1a0
torch/utils/cpp_extension.py
@@ -550,7 +550,7 @@ def spawn(cmd):
550
else:
551
cflags = []
552
553
- cflags = win_cuda_flags(cflags)
+ cflags = win_cuda_flags(cflags) + ['--use-local-env']
554
for flag in COMMON_MSVC_FLAGS:
555
cflags = ['-Xcompiler', flag] + cflags
556
for ignore_warning in MSVC_IGNORE_CUDAFE_WARNINGS:
@@ -620,7 +620,7 @@ def win_wrap_ninja_compile(sources,
620
cuda_post_cflags = None
621
cuda_cflags = None
622
if with_cuda:
623
- cuda_cflags = []
+ cuda_cflags = ['--use-local-env']
624
for common_cflag in common_cflags:
625
cuda_cflags.append('-Xcompiler')
626
cuda_cflags.append(common_cflag)
0 commit comments