Skip to content

shhhhhhjokerist/dgl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,419 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build DGL for RTX5060Ti:

Environment:

  • RTX5060Ti, Win10
  • CUDA: 12.8
  • PyTorch: 2.8.0
  • python: 3.9

Diff with master:

# ./CMakeList.txt
# dgl_option(TORCH_PYTHON_INTERPS "Python interpreter for building sub-components" python3)
dgl_option(TORCH_PYTHON_INTERPS "Python interpreter for building sub-components" python)

...

# Generic compilation options
if(MSVC)
...
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4244")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4267")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4251")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4275")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4099")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4996")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /wd4819")

Replace all "Visual Studio 16 2019" with "Visual Studio 17 2022"

Build Steps on x64 Native Tools Command Prompt for 2022

git clone --recurse-submodules git@github.com:shhhhhhjokerist/dgl.git

(CUDA.cmake.patch makes building faster, cited from dmlc#7917)

Run dgl_build.bat

(中文系统如果经常报错 warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unicode 鏍煎紡浠ラ槻姝㈡暟鎹涪澶? 等奇怪字符且编译失败,去区域里-更改系统区域设置-勾选Beta版:使用UTF-8提供全球语言支持)

or

  • MD build
  • CD build
  • cmake -DCMAKE_CXX_FLAGS="/DDGL_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" -DDMLC_FORCE_SHARED_CRT=ON -DUSE_CUDA=ON .. -G "Visual Studio 17 2022"
  • msbuild dgl.sln /m
  • CD ..\python
  • python setup.py install (on conda env)

About

Python package built to ease deep learning on graph, on top of existing DL frameworks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 62.4%
  • C++ 22.8%
  • Jupyter Notebook 6.9%
  • Cuda 6.4%
  • CMake 0.6%
  • Shell 0.3%
  • Other 0.6%