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-sparse
Commits
0a659cde
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "0b42b074b4f6e2eff26c11743f8f7d0e6ad9d79c"
Commit
0a659cde
authored
Feb 23, 2020
by
rusty1s
Browse files
complete metis test
parent
8945bed2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
32 deletions
+15
-32
.travis.yml
.travis.yml
+12
-12
csrc/cpu/metis_cpu.cpp
csrc/cpu/metis_cpu.cpp
+1
-1
csrc/cpu/metis_cpu.h
csrc/cpu/metis_cpu.h
+0
-0
csrc/metis.cpp
csrc/metis.cpp
+1
-1
script/metis.sh
script/metis.sh
+0
-16
torch_sparse/__init__.py
torch_sparse/__init__.py
+1
-2
No files found.
.travis.yml
View file @
0a659cde
...
@@ -2,7 +2,7 @@ language: shell
...
@@ -2,7 +2,7 @@ language: shell
os
:
os
:
-
linux
-
linux
#
- osx
-
osx
-
windows
-
windows
env
:
env
:
...
@@ -10,17 +10,17 @@ env:
...
@@ -10,17 +10,17 @@ env:
-
CUDA_HOME=/usr/local/cuda
-
CUDA_HOME=/usr/local/cuda
jobs
:
jobs
:
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cpu
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cpu
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu101
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu101
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cpu
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cpu
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
#
- TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
-
TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
jobs
:
jobs
:
exclude
:
# Exclude *all* macOS CUDA jobs and Windows CUDA 9.2/10.0 jobs.
exclude
:
# Exclude *all* macOS CUDA jobs and Windows CUDA 9.2/10.0 jobs.
...
...
csrc/cpu/metis_
wrapper_
cpu.cpp
→
csrc/cpu/metis_cpu.cpp
View file @
0a659cde
#include "metis_
wrapper_
cpu.h"
#include "metis_cpu.h"
#include <metis.h>
#include <metis.h>
...
...
csrc/cpu/metis_
wrapper_
cpu.h
→
csrc/cpu/metis_cpu.h
View file @
0a659cde
File moved
csrc/metis
_wrapper
.cpp
→
csrc/metis.cpp
View file @
0a659cde
#include <Python.h>
#include <Python.h>
#include <torch/script.h>
#include <torch/script.h>
#include "cpu/metis_
wrapper_
cpu.h"
#include "cpu/metis_cpu.h"
#include <metis.h>
#include <metis.h>
...
...
script/metis.sh
View file @
0a659cde
...
@@ -20,22 +20,6 @@ else
...
@@ -20,22 +20,6 @@ else
cmake ..
-A
x64
# Ensure we are building with x64
cmake ..
-A
x64
# Ensure we are building with x64
cmake
--build
.
--config
"Release"
--target
ALL_BUILD
cmake
--build
.
--config
"Release"
--target
ALL_BUILD
cp
libmetis/Release/metis.lib /c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/lib/x64
cp
libmetis/Release/metis.lib /c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/lib/x64
# ls /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64
# /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/dumpbin.exe libmetis/Release/metis.lib
# cmake .. -DSHARED=1
# cmake --build . --config "Release" --target ALL_BUILD
# # cp libmetis/Release/metis.lib ../..
# cp libmetis/Release/metis.dll /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin
# ls /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin
# cmake .. -DSHARED=1
# cmake --build . --config "Release" --target ALL_BUILD
# cp libmetis/Release/metis.dll /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/x64
cp
../include/metis.h /c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/include
cp
../include/metis.h /c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/include
cd
..
cd
..
...
...
torch_sparse/__init__.py
View file @
0a659cde
...
@@ -8,8 +8,7 @@ expected_torch_version = (1, 4)
...
@@ -8,8 +8,7 @@ expected_torch_version = (1, 4)
try
:
try
:
for
library
in
[
for
library
in
[
'_version'
,
'_convert'
,
'_diag'
,
'_spmm'
,
'_spspmm'
,
'_version'
,
'_convert'
,
'_diag'
,
'_spmm'
,
'_spspmm'
,
'_metis'
'_metis_wrapper'
]:
]:
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
torch
.
ops
.
load_library
(
importlib
.
machinery
.
PathFinder
().
find_spec
(
library
,
[
osp
.
dirname
(
__file__
)]).
origin
)
library
,
[
osp
.
dirname
(
__file__
)]).
origin
)
...
...
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