-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/add env file #54
base: main
Are you sure you want to change the base?
Conversation
@@ -54,9 +62,8 @@ if [[ -n "$NVIDIA_RUNTIME_FLAG" ]]; then | |||
fi | |||
|
|||
if [[ -n "$DEVICE" ]]; then | |||
DOCKER_RUN_FLAGS+=" -e CUDA_VISIBLE_DEVICES=$DEVICE \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not cuda visible devices? are you sure this wont impact all the other containers which use 0 by default for example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we were using duplicate parameters that do the same thing : DEVICE & CUDA_VISIBLE_DEVICES, i removed the usage of CUDA_VISIBLE_DEVICES everywhere in the code and now using DEVICE directly
if cuda_visible_devices is not None: | ||
gpus = cuda_visible_devices | ||
else: | ||
gpus = "all" | ||
|
||
docker_run_flags = f"--gpus {gpus} --runtime=nvidia" | ||
docker_run_flags = f'--gpus "device={gpus}" --runtime=nvidia' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wont this affect image server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.