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
tilelang
Commits
b5ac9bba
Commit
b5ac9bba
authored
Jul 16, 2025
by
Lei Wang
Committed by
LeiWang1999
Jul 16, 2025
Browse files
[Refactor] Phaseout redundant CUDA_DEVICE_ORDER export (#639)
parent
e2d25ba8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
install_cuda.sh
install_cuda.sh
+0
-1
install_rocm.sh
install_rocm.sh
+0
-10
No files found.
install_cuda.sh
View file @
b5ac9bba
...
...
@@ -144,7 +144,6 @@ TILELANG_PATH="$(pwd)"
echo
"TileLang path set to:
$TILELANG_PATH
"
echo
"Configuring environment variables for TVM..."
echo
"export PYTHONPATH=
${
TILELANG_PATH
}
:
\$
PYTHONPATH"
>>
~/.bashrc
echo
"export CUDA_DEVICE_ORDER=PCI_BUS_ID"
>>
~/.bashrc
# Step 12: Source .bashrc to apply changes
echo
"Applying environment changes by sourcing .bashrc..."
...
...
install_rocm.sh
View file @
b5ac9bba
...
...
@@ -91,10 +91,8 @@ cd ..
TILELANG_PATH
=
"
$(
pwd
)
"
echo
"Configuring environment variables for TVM..."
echo
"export PYTHONPATH=
${
TILELANG_PATH
}
:
\$
PYTHONPATH"
>>
~/.bashrc
echo
"export CUDA_DEVICE_ORDER=PCI_BUS_ID"
>>
~/.bashrc
TVM_HOME_ENV
=
"export TVM_HOME=
${
TILELANG_PATH
}
/3rdparty/tvm"
TILELANG_PYPATH_ENV
=
"export PYTHONPATH=
\$
TVM_HOME/python:
${
TILELANG_PATH
}
:
\$
PYTHONPATH"
CUDA_DEVICE_ORDER_ENV
=
"export CUDA_DEVICE_ORDER=PCI_BUS_ID"
# Check and add the first line if not already present
if
!
grep
-qxF
"
$TVM_HOME_ENV
"
~/.bashrc
;
then
...
...
@@ -112,14 +110,6 @@ else
echo
"PYTHONPATH is already set in ~/.bashrc"
fi
# Check and add the third line if not already present
if
!
grep
-qxF
"
$CUDA_DEVICE_ORDER_ENV
"
~/.bashrc
;
then
echo
"
$CUDA_DEVICE_ORDER_ENV
"
>>
~/.bashrc
echo
"Added CUDA_DEVICE_ORDER to ~/.bashrc"
else
echo
"CUDA_DEVICE_ORDER is already set in ~/.bashrc"
fi
# Reload ~/.bashrc to apply the changes
source
~/.bashrc
...
...
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