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
7a505302
Commit
7a505302
authored
Oct 30, 2020
by
rusty1s
Browse files
try again
parent
151c1d32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
script/cuda.sh
script/cuda.sh
+7
-3
script/torch.sh
script/torch.sh
+0
-4
setup.py
setup.py
+0
-1
No files found.
script/cuda.sh
View file @
7a505302
...
@@ -65,7 +65,7 @@ fi
...
@@ -65,7 +65,7 @@ fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu110"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu110"
]
;
then
export
CUDA_SHORT
=
11.0
export
CUDA_SHORT
=
11.0
export
CUDA_URL
=
https://developer.download.nvidia.com/compute/cuda/
11.0
.2/local_installers
export
CUDA_URL
=
https://developer.download.nvidia.com/compute/cuda/
${
CUDA_SHORT
}
.2/local_installers
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.2_451.48_win10.exe
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.2_451.48_win10.exe
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
fi
fi
...
@@ -96,9 +96,9 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ] && [ "${IDX}" != "
...
@@ -96,9 +96,9 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ] && [ "${IDX}" != "
fi
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
&&
[
"
${
IDX
}
"
=
"cu110"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
&&
[
"
${
IDX
}
"
=
"cu110"
]
;
then
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
wget
-nv
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv
cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo mv
cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda-repo-ubuntu1804-11-0-local_11.0.3-450.51.06-1_amd64.deb
wget
-nv
https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda-repo-ubuntu1804-11-0-local_11.0.3-450.51.06-1_amd64.deb
sudo
dpkg
-i
cuda-repo-ubuntu1804-11-0-local_11.0.3-450.51.06-1_amd64.deb
sudo
dpkg
-i
cuda-repo-ubuntu1804-11-0-local_11.0.3-450.51.06-1_amd64.deb
sudo
apt-key add /var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub
sudo
apt-key add /var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub
sudo
apt update
-qq
sudo
apt update
-qq
...
@@ -123,4 +123,8 @@ if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then
...
@@ -123,4 +123,8 @@ if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then
PATH
=
${
CUDA_HOME
}
/bin:
$PATH
PATH
=
${
CUDA_HOME
}
/bin:
$PATH
PATH
=
/c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/MSBuild/15.0/Bin:
$PATH
PATH
=
/c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/MSBuild/15.0/Bin:
$PATH
nvcc
--version
nvcc
--version
# TODO
ls
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.0
nvidia-smi
fi
fi
script/torch.sh
View file @
7a505302
...
@@ -10,8 +10,4 @@ fi
...
@@ -10,8 +10,4 @@ fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
TORCH_VERSION
}
"
=
"1.7.0"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
TORCH_VERSION
}
"
=
"1.7.0"
]
;
then
echo
"Fix nvcc for PyTorch 1.7.0"
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
sed
-i
.bak
'/static constexpr Symbol Kind/d'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h
echo
"-------------------------"
sed
-n
'1327,1375p'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h
echo
"-------------------------"
fi
fi
setup.py
View file @
7a505302
...
@@ -25,7 +25,6 @@ def get_extensions():
...
@@ -25,7 +25,6 @@ def get_extensions():
extra_link_args
=
[]
extra_link_args
=
[]
info
=
parallel_info
()
info
=
parallel_info
()
print
(
info
)
if
'parallel backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
:
if
'parallel backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
:
extra_compile_args
[
'cxx'
]
+=
[
'-DAT_PARALLEL_OPENMP'
]
extra_compile_args
[
'cxx'
]
+=
[
'-DAT_PARALLEL_OPENMP'
]
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
...
...
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