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

 

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

 

相关文章:

  • 2022-01-20
  • 2022-01-04
  • 2021-06-17
  • 2022-12-23
  • 2021-09-16
  • 2021-12-20
  • 2021-10-17
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2021-06-18
  • 2021-03-31
  • 2022-12-23
  • 2021-10-05
  • 2021-04-19
相关资源
相似解决方案