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试试

 

 

posted on 2021-07-01 14:44  川洋  阅读(10068)  评论(1编辑  收藏  举报