Created
April 14, 2021 12:00
-
-
Save imneonizer/3e3cd3904e67aeeca28af79a65dd97bc to your computer and use it in GitHub Desktop.
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
# use multiple gpu devices by index | |
import os | |
#GPU_id = '0' | |
GPU_id = '0,1,2,3' | |
os.environ['CUDA_VISIBLE_DEVICES'] = GPU_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment