Skip to content

Commit 2782856

Browse files
committed
Fix ROCm paths in .zshrc
1 parent dee72bd commit 2782856

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

zsh/.zshrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ fi
418418
# By default clinfo and other OpenCL applications might not see the ROCm driver.
419419
if [ -d "/opt/rocm" ]; then
420420
# Do not change the configuration on clusters, as they have their own driver setup.
421-
if command -v srun &> /dev/null; then :; else
422-
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/rocm/lib:/opt/rocm/opencl/lib"
421+
if ! command -v srun &> /dev/null; then
422+
# This path seems to no longer exist on newer ROCm versions: /opt/rocm/opencl/lib
423+
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/rocm/lib"
423424
fi
424425
fi
425426

0 commit comments

Comments
 (0)