Skip to content

Commit

Permalink
Writing correct bash script in one go is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
huydhn committed Dec 25, 2024
1 parent 2f6f76c commit 373e9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/utils_cuda.bash
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fix_libcuda () {

# The symlink appears to be missing when we attempt to run FBGEMM_GPU on the
# `ubuntu-latest` runners on GitHub, so we have to manually add this in.
if [ "$ADD_LIBCUDA_SYMLINK" == "1" ] || [! -f "$(dirname "$libcuda_path")/libcuda.so.1"]; then
if [ "$ADD_LIBCUDA_SYMLINK" == "1" ] || [[ ! -f "$(dirname "$libcuda_path")/libcuda.so.1" ]]; then
local libcuda_owner=$(stat -c '%U' "${libcuda_path}")
if [ "${libcuda_owner}" == "root" ]; then
print_exec sudo ln "${libcuda_path}" -s "$(dirname "$libcuda_path")/libcuda.so.1"
Expand Down

0 comments on commit 373e9f9

Please sign in to comment.