Created
September 17, 2025 04:55
-
-
Save HUGHNew/66a067b6ac04f8fc26688451781efb14 to your computer and use it in GitHub Desktop.
Dispatch your GPU task with Conda/Mamba in a faster way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function order() { | |
| args=("$@") | |
| args=("${args[@]:1}") | |
| if env|grep CONDA_PREFIX > /dev/null;then | |
| __LDP=$LD_LIBRARY_PATH:$CONDA_PREFIX | |
| fi | |
| LD_LIBRARY_PATH=$__LDP CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=$1 ${args[@]} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment