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
torch-cluster
Commits
9d3cb277
Commit
9d3cb277
authored
Jun 17, 2021
by
rusty1s
Browse files
pytorch 1.9.0
parent
f30c71d6
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
script/torch.sh
script/torch.sh
+0
-13
setup.py
setup.py
+2
-1
No files found.
script/torch.sh
deleted
100755 → 0
View file @
f30c71d6
#!/bin/bash
# https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
TORCH_VERSION
}
"
=
"1.7.0"
]
;
then
echo
"Fix nvcc for PyTorch"
sed
-i
.bak
-e
's/CONSTEXPR_EXCEPT_WIN_CUDA/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
sed
-i
.bak
-e
's/return \*(this->value)/return \*((type\*)this->value)/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
TORCH_VERSION
}
"
=
"1.7.0"
]
;
then
echo
"Fix nvcc for PyTorch 1.7.0"
sed
-i
.bak
'/static constexpr Symbol Kind/d'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h
fi
setup.py
View file @
9d3cb277
...
...
@@ -34,7 +34,8 @@ def get_extensions():
extra_link_args
=
[
'-s'
]
info
=
parallel_info
()
if
'backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
:
if
(
'backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
and
sys
.
platform
!=
'darwin'
):
extra_compile_args
[
'cxx'
]
+=
[
'-DAT_PARALLEL_OPENMP'
]
if
sys
.
platform
==
'win32'
:
extra_compile_args
[
'cxx'
]
+=
[
'/openmp'
]
...
...
Prev
1
2
Next
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