Thanks. Now i installed the cuda 7.0 and pytorch is successfully compiled with GPU, now i can call torch.cuda.isavalable() return True.
But another error happens, it says “runtime error: cublas runtime error, library not initialized at…/THCGeneral.cpp:377”.