Skip to content

Instantly share code, notes, and snippets.

@imneonizer
Created April 14, 2021 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imneonizer/3e3cd3904e67aeeca28af79a65dd97bc to your computer and use it in GitHub Desktop.
Save imneonizer/3e3cd3904e67aeeca28af79a65dd97bc to your computer and use it in GitHub Desktop.
# 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