Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use test -n to check the existence of CUDA_VISIBLE_DEVICES #1204

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

gpupuck
Copy link
Contributor

@gpupuck gpupuck commented Dec 17, 2024

With set -u, if CUDA_VISIBLE_DEVICES is not set outside of test-maxtext.sh, then if [ "$CUDA_VISIBLE_DEVICES" != "" ]; then will introduce -bash: CUDA_VISIBLE_DEVICES: unbound variable error.

With `set -u`, if CUDA_VISIBLE_DEVICES is not set outside of `test-maxtext.sh`, then `if [ "$CUDA_VISIBLE_DEVICES" != "" ]; then` will introduce `-bash: CUDA_VISIBLE_DEVICES: unbound variable` error.
@gpupuck gpupuck requested review from nouiz and DwarKapex December 17, 2024 20:08
@gpupuck gpupuck merged commit 5a74526 into main Dec 17, 2024
106 of 118 checks passed
@gpupuck gpupuck deleted the by/fix-maxtext-sh branch December 17, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants