Device API gpu is not enabled. Please install the cuda version of dgl.错误


因为dgl分gpu版和cpu版,估计默认安装的是cpu版本,所以无法调用cuda,解决方法

https://www.dgl.ai/pages/start.html,选择指定版本进行安装即可,如果在安装后,访问cuda时出现以下错误

 /opt/dgl/src/runtime/c_runtime_api.cc:88: Check failed: allow_missing: Device API gpu is not enabled. Please install the cuda version of dgl.
可以降低安装的dgl的cuda版本,如果11.0出现错误,就安装10.2试试

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM