Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set cuda visible devices python

import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"   # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"]="0"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #cuda #visible #devices #python
ADD COMMENT
Topic
Name
3+6 =