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
d8e22ae5
Unverified
Commit
d8e22ae5
authored
Mar 07, 2023
by
Rhett Ying
Committed by
GitHub
Mar 07, 2023
Browse files
[Dev] Enable to append more cmake arguments for build (#5431)
parent
5854ef5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
script/build_dgl.sh
script/build_dgl.sh
+6
-2
No files found.
script/build_dgl.sh
View file @
d8e22ae5
...
...
@@ -10,21 +10,25 @@ examples:
Start a CUDA build: bash
$0
-g
Build incrementally: bash
$0
Remove all intermediate output and restart a CPU only build: bash
$0
-c -r
Build with extra cmake arguments: bash
$0
-c -e '-DUSE_AVX=ON'
Build DGL. By default, build incrementally on top of the current state.
OPTIONS:
-h Show this message.
-c Restart CPU only build.
-e Extra arguments of cmake.
-g Restart CUDA build.
-r Remove all intermediate output.
EOF
}
# Parse flags.
while
getopts
"cghr"
flag
;
do
while
getopts
"c
e:
ghr"
flag
;
do
if
[[
${
flag
}
==
"c"
]]
;
then
cuda
=
"OFF"
elif
[[
${
flag
}
==
"e"
]]
;
then
extra_args
=
${
OPTARG
}
elif
[[
${
flag
}
==
"g"
]]
;
then
cuda
=
"ON"
elif
[[
${
flag
}
==
"r"
]]
;
then
...
...
@@ -65,7 +69,7 @@ if [[ -z ${cuda} ]]; then
else
mkdir
-p
build
cd
build
cmake
-DUSE_CUDA
=
${
cuda
}
..
cmake
-DUSE_CUDA
=
${
cuda
}
${
extra_args
}
..
fi
if
[[
${
PWD
}
==
"
${
DGL_HOME
}
/build"
]]
;
then
...
...
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