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
663fbf80
"vscode:/vscode.git/clone" did not exist on "4b73c37540cb2e9e04ad333fcf8314671643b25d"
Commit
663fbf80
authored
Jun 17, 2021
by
rusty1s
Browse files
build metis
parent
ceaaf0b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
1 deletion
+47
-1
.github/workflows/metis-Windows.sh
.github/workflows/metis-Windows.sh
+21
-0
.github/workflows/metis.sh
.github/workflows/metis.sh
+15
-0
.github/workflows/testing.yml
.github/workflows/testing.yml
+11
-1
No files found.
.github/workflows/metis-Windows.sh
0 → 100755
View file @
663fbf80
#!/bin/bash
METIS
=
metis-5.1.0
wget
-nv
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
${
METIS
}
.tar.gz
tar
-xvzf
${
METIS
}
.tar.gz
rm
-f
${
METIS
}
.tar.gz
cd
${
METIS
}
||
exit
sed
-i
.bak
-e
's/IDXTYPEWIDTH 32/IDXTYPEWIDTH 64/g'
include/metis.h
# Fix GKlib on Windows: https://github.com/jlblancoc/suitesparse-metis-for-windows/issues/6
sed
-i
.bak
-e
'61,69d'
GKlib/gk_arch.h
cd
build
||
exit
cmake ..
-A
x64
# Ensure we are building with x64
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
../include/metis.h /c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/include
rm
-f
${
METIS
}
.github/workflows/metis.sh
0 → 100755
View file @
663fbf80
#!/bin/bash
METIS
=
metis-5.1.0
wget
-nv
http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
${
METIS
}
.tar.gz
tar
-xvzf
${
METIS
}
.tar.gz
rm
-f
${
METIS
}
.tar.gz
cd
${
METIS
}
||
exit
sed
-i
.bak
-e
's/IDXTYPEWIDTH 32/IDXTYPEWIDTH 64/g'
include/metis.h
make config
make
sudo
make
install
rm
-f
${
METIS
}
.github/workflows/testing.yml
View file @
663fbf80
...
@@ -28,10 +28,20 @@ jobs:
...
@@ -28,10 +28,20 @@ jobs:
run
:
|
run
:
|
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install
internal dependencies
-
name
:
Install
torch-scatter
run
:
|
run
:
|
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${{ matrix.torch-version }}+cpu.html
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${{ matrix.torch-version }}+cpu.html
-
name
:
Install METIS
if
:
${{ runner.os != 'Windows' }}
run
:
|
bash .github/workflows/metis.sh
-
name
:
Install METIS on Windows
if
:
${{ runner.os == 'Windows' }}
run
:
|
bash .github/workflows/metis-${{ runner.os }}.sh
-
name
:
Install main package
-
name
:
Install main package
run
:
|
run
:
|
pip install -e .[test]
pip install -e .[test]
...
...
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