smth:

(print(torch.version)


Version: '0.3.0.post4’
nvidia-smi:
Mon Dec 18 16:01:43 2017
±----------------------------------------------------------------------------+
| NVIDIA-SMI 384.90                 Driver Version: 384.90                    |
|-------------------------------±---------------------±---------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla K80           On   | 00000000:06:00.0 Off |                    0 |
| N/A   61C    P0    81W / 149W |    742MiB / 11439MiB |      1%   E. Process |
±------------------------------±---------------------±---------------------+
|   1  Tesla K80           On   | 00000000:07:00.0 Off |                    0 |
| N/A   53C    P0   133W / 149W |   1595MiB / 11439MiB |    100%   E. Process |
±------------------------------±---------------------±---------------------+
|   2  Tesla K80           On   | 00000000:0D:00.0 Off |                    0 |
| N/A   35C    P8    28W / 149W |     11MiB / 11439MiB |      0%   E. Process |
±------------------------------±---------------------±---------------------+
|   3  Tesla K80           On   | 00000000:0E:00.0 Off |                    0 |
| N/A   40C    P0    91W / 149W |    739MiB / 11439MiB |      1%   E. Process |
±------------------------------±---------------------±---------------------+
|   4  Tesla K80           On   | 00000000:85:00.0 Off |                    0 |
| N/A   64C    P0   127W / 149W |   1607MiB / 11439MiB |     55%   E. Process |
±------------------------------±---------------------±---------------------+
|   5  Tesla K80           On   | 00000000:86:00.0 Off |                    0 |
| N/A   34C    P0    71W / 149W |    255MiB / 11439MiB |      0%   E. Process |
±------------------------------±---------------------±---------------------+
|   6  Tesla K80           On   | 00000000:8D:00.0 Off |                    0 |
| N/A   28C    P8    27W / 149W |     11MiB / 11439MiB |      0%   E. Process |
±------------------------------±---------------------±---------------------+
|   7  Tesla K80           On   | 00000000:8E:00.0 Off |                    0 |
| N/A   23C    P8    30W / 149W |     11MiB / 11439MiB |      0%   E. Process |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0   2512927      C   python                                       731MiB |
|    1   2573733      C   python                                      1584MiB |
|    3   2561442      C   python                                       728MiB |
|    4   2573622      C   python                                      1596MiB |
|    5   2573733      C   python                                       244MiB |
±----------------------------------------------------------------------------+
GPU 2, 6 and 7 are free.
I set and check the gpu that I am using by printing:
torch.cuda.set_device(opts.gpuNo)
print 'using gpu:', torch.cuda.current_device()
dae.cuda()