graph4ai / graph4nlp

Graph4nlp is the library for the easy use of Graph Neural Networks for NLP. Welcome to visit our DLG4NLP website (https://dlg4nlp.github.io/index.html) for various learning resources!
Apache License 2.0
1.66k stars 200 forks source link

Support for CUDA 12 #595

Open ruze00 opened 4 months ago

ruze00 commented 4 months ago

CUDA 12 has been out for a while now and most people are using PyTorch with 12.1. This library should be upgraded if it is still being used.

Chenxuanqi666 commented 2 months ago

My cuda version is 12.1, and I can run it on this project,but when install dgl,there is a erro:AttributeError: module 'dgl.function' has no attribute 'copy_src',The solution is to replace the copy_src(src, out) function with copy_u(u, out)