Skip to content

Instantly share code, notes, and snippets.

@liuhengyue
Last active August 23, 2018 21:08
Show Gist options
  • Save liuhengyue/b27c736e575775691ddfcaa24d59db39 to your computer and use it in GitHub Desktop.
Save liuhengyue/b27c736e575775691ddfcaa24d59db39 to your computer and use it in GitHub Desktop.
Select GPU
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment