Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
a7c10167
Unverified
Commit
a7c10167
authored
Dec 01, 2021
by
Zaida Zhou
Committed by
GitHub
Dec 01, 2021
Browse files
[Fix] Fix compiled error on windows (#1543)
* [Fix] Fix compiled error on windows * fix typo
parent
0086bef3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
setup.py
setup.py
+9
-1
No files found.
setup.py
View file @
a7c10167
...
@@ -224,7 +224,15 @@ def get_extensions():
...
@@ -224,7 +224,15 @@ def get_extensions():
os
.
environ
.
setdefault
(
'MAX_JOBS'
,
str
(
cpu_use
))
os
.
environ
.
setdefault
(
'MAX_JOBS'
,
str
(
cpu_use
))
define_macros
=
[]
define_macros
=
[]
extra_compile_args
=
{}
# Before PyTorch1.8.0, when compiling CUDA code, `cxx` is a
# required key passed to PyTorch. Even if there is no flag passed
# to cxx, users also need to pass an empty list to PyTorch.
# Since PyTorch1.8.0, it has a default value so users do not need
# to pass an empty list anymore.
# More details at https://github.com/pytorch/pytorch/pull/45956
extra_compile_args
=
{
'cxx'
:
[]}
# Since the PR (https://github.com/open-mmlab/mmcv/pull/1463) uses
# Since the PR (https://github.com/open-mmlab/mmcv/pull/1463) uses
# c++14 features, the argument ['std=c++14'] must be added here.
# c++14 features, the argument ['std=c++14'] must be added here.
# However, in the windows environment, some standard libraries
# However, in the windows environment, some standard libraries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment