CasRel icon indicating copy to clipboard operation
CasRel copied to clipboard

GPU的使用问题

Open Gavin4th opened this issue 5 years ago • 4 comments

想问下作者,为啥我能运行程序,但是却是使用CPU运行的

Gavin4th avatar Nov 10 '20 02:11 Gavin4th

想问下作者,为啥我能运行程序,但是却是使用CPU运行的

看看你的output有没有这一行:failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected 因为在run.py里面它设置了cuda_device = 1.但是大部分人都只有1个cudadevice,把1改成0就好了 os.environ["CUDA_VISIBLE_DEVICES"] = "0"

hy-chen avatar Dec 01 '20 19:12 hy-chen

run.py里面第6行代码是:

os.environ["CUDA_VISIBLE_DEVICES"] = "1"

作者应该是在多卡环境下跑的代码,可能你是单机,所以“1”改成“0”就可以了

fenss avatar Jan 08 '21 01:01 fenss

谢谢,我试试

------------------ 原始邮件 ------------------ 发件人: "fenss"<[email protected]>; 发送时间: 2021年1月8日(星期五) 上午9:05 收件人: "weizhepei/CasRel"<[email protected]>; 抄送: "Jarvan"<[email protected]>; "Author"<[email protected]>; 主题: Re: [weizhepei/CasRel] GPU的使用问题 (#40)

run.py里面第6行代码是:

os.environ["CUDA_VISIBLE_DEVICES"] = "1" 作者应该是在多卡环境下跑的代码,可能你是单机,所以“1”改成“0”就可以了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Gavin4th avatar Jan 11 '21 04:01 Gavin4th