Closed klueska closed 2 months ago
Just tested this before merging and it doesn't seem to work:
error starting MPS control daemon: error setting compute mode: error running nvidia-smi: exec: "nvidia-smi": executable file not found in $PATH
I think wrapping the call in a "bash -c" would likely work.
Previously, we were setting the envvars needed for nvidia-smi in the plugin's environment itself. This caused errors, however, when shelling out to other binaries that didn't need these envvars set.
This change pushes the setting of the envvars into the actual exec call for nvidia-smi instead of setting them in the plugin's environment itself.
Closes #106