PYTHON 25
Check_GPU.py Guest on 8th February 2021 09:30:17 AM
  1. import sys
  2.  
  3. GLOBAL_PATH='/home/casp11/casp12/tools/dncon1.1/';
  4.  
  5. sys.path.insert(0, GLOBAL_PATH+'libs/cudamat-rbm')
  6.  
  7. try:
  8.  import cudamat
  9. except ImportError, e:
  10.  pass
  11.  
  12. print "GPU is detected to run cudamat!";

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.