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
dgl
Commits
65e6b04d
Unverified
Commit
65e6b04d
authored
May 13, 2022
by
Rhett Ying
Committed by
GitHub
May 12, 2022
Browse files
[Build] enable USE_AVX in CI and regression tests (#4004)
parent
4177f729
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
benchmarks/scripts/build_dgl_asv.sh
benchmarks/scripts/build_dgl_asv.sh
+4
-0
tests/scripts/build_dgl.bat
tests/scripts/build_dgl.bat
+1
-1
No files found.
benchmarks/scripts/build_dgl_asv.sh
View file @
65e6b04d
...
@@ -16,6 +16,10 @@ if [[ $DEVICE == "cpu" ]]; then
...
@@ -16,6 +16,10 @@ if [[ $DEVICE == "cpu" ]]; then
else
else
CMAKE_VARS
=
"-DUSE_CUDA=ON"
CMAKE_VARS
=
"-DUSE_CUDA=ON"
fi
fi
arch
=
`
uname
-m
`
if
[[
$arch
==
*
"x86"
*
]]
;
then
CMAKE_VARS
=
"-DUSE_AVX=ON
$CMAKE_VARS
"
fi
mkdir
-p
build
mkdir
-p
build
pushd
build
pushd
build
cmake
-DCUDA_TOOLKIT_ROOT_DIR
=
/usr/local/cuda
-DBUILD_TORCH
=
ON
$CMAKE_VARS
..
cmake
-DCUDA_TOOLKIT_ROOT_DIR
=
/usr/local/cuda
-DBUILD_TORCH
=
ON
$CMAKE_VARS
..
...
...
tests/scripts/build_dgl.bat
View file @
65e6b04d
...
@@ -13,7 +13,7 @@ SET TEMP=%WORKSPACE%\tmp
...
@@ -13,7 +13,7 @@ SET TEMP=%WORKSPACE%\tmp
SET
TMPDIR
=
%WORKSPACE%
\tmp
SET
TMPDIR
=
%WORKSPACE%
\tmp
PUSHD
build
PUSHD
build
cmake
-DCMAKE
_CXX_FLAGS
=
"/DDGL_EXPORTS"
-DUSE
_OPENMP
=
ON
-DBUILD
_TORCH
=
ON
-Dgtest
_force_shared_crt
=
ON
-DDMLC
_FORCE_SHARED_CRT
=
ON
-DBUILD
_CPP_TEST
=
1
-DCMAKE
_CONFIGURATION_TYPES
=
"Release"
..
-G
"Visual Studio 16 2019"
||
EXIT
/B
1
cmake
-DCMAKE
_CXX_FLAGS
=
"/DDGL_EXPORTS"
-DUSE
_AVX
=
ON
-DUSE
_OPENMP
=
ON
-DBUILD
_TORCH
=
ON
-Dgtest
_force_shared_crt
=
ON
-DDMLC
_FORCE_SHARED_CRT
=
ON
-DBUILD
_CPP_TEST
=
1
-DCMAKE
_CONFIGURATION_TYPES
=
"Release"
..
-G
"Visual Studio 16 2019"
||
EXIT
/B
1
msbuild
dgl
.sln
/m /nr
:false
||
EXIT
/B
1
msbuild
dgl
.sln
/m /nr
:false
||
EXIT
/B
1
COPY
/Y
Release
\runUnitTests.exe .
COPY
/Y
Release
\runUnitTests.exe .
POPD
POPD
...
...
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