(gdb) r -c ‘import torch; torch.zeros((3,3,3)).cuda(1)’
Starting program: /storage/litong/anaconda3/bin/python -c ‘import torch; torch.zeros((3,3,3)).cuda(1)’
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
[New Thread 0x7fffbd8dc700 (LWP 56214)]
[New Thread 0x7fffbd0db700 (LWP 56215)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbd0db700 (LWP 56215)]
0x00007ffff0fcf805 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1
(gdb) where
#0  0x00007ffff0fcf805 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1
#1  0x00007ffff111fc34 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1
#2  0x00007ffff10bc180 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1
#3  0x00007ffff7bc4184 in start_thread (arg=0x7fffbd0db700)
at pthread_create.c:312
#4  0x00007ffff78f103d in clone ()
at …/sysdep
s/unix/sysv/linux/x86_64/clone.S:111