Dgl 1.0.x version source code compilation generates errors

When I compiled the source code according to the configuration, this error occurred. I want to know how I should solve it? It seems that this problem does not occur when I compile version 0.8.
CUDA:11.2
torch-1.12.0

[ 49%] Built target tensoradapter_pytorch
[ 49%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_rowwise_sampling.cu.o
[ 49%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_negative_sampling.cu.o
[ 49%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_labor_sampling.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_rowwise_sampling_prob.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_sddmm.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_sddmm_hetero_coo.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_sddmm_hetero_csr.cu.o
[ 51%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_spmm_hetero.cu.o
[ 51%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/geometry/cuda/dgl_generated_edge_coarsening_impl.cu.o
[ 51%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/graph/sampling/randomwalks/dgl_generated_randomwalk_gpu.cu.o
[ 51%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_spmm.cu.o
[ 51%] Building NVCC (Device) object CMakeFiles/dgl.dir/src/graph/transform/cuda/dgl_generated_knn.cu.o
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /home/bear/workspace/signn_dgl/src/array/cuda/labor_sampling.cu:24:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
CMake Error at dgl_generated_labor_sampling.cu.o.cmake:216 (message):
  Error generating
  /home/bear/workspace/signn_dgl/build/CMakeFiles/dgl.dir/src/array/cuda/./dgl_generated_labor_sampling.cu.o


make[2]: *** [CMakeFiles/dgl.dir/build.make:9255: CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_labor_sampling.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/bear/workspace/signn_dgl/src/array/cuda/rowwise_sampling_prob.cu:10:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/bear/workspace/signn_dgl/src/array/cuda/rowwise_sampling.cu:8:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
CMake Error at dgl_generated_rowwise_sampling_prob.cu.o.cmake:216 (message):
  Error generating
  /home/bear/workspace/signn_dgl/build/CMakeFiles/dgl.dir/src/array/cuda/./dgl_generated_rowwise_sampling_prob.cu.o


make[2]: *** [CMakeFiles/dgl.dir/build.make:9276: CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_rowwise_sampling_prob.cu.o] Error 1
CMake Error at dgl_generated_rowwise_sampling.cu.o.cmake:216 (message):
  Error generating
  /home/bear/workspace/signn_dgl/build/CMakeFiles/dgl.dir/src/array/cuda/./dgl_generated_rowwise_sampling.cu.o


make[2]: *** [CMakeFiles/dgl.dir/build.make:9269: CMakeFiles/dgl.dir/src/array/cuda/dgl_generated_rowwise_sampling.cu.o] Error 1
In file included from /home/bear/workspace/signn_dgl/src/array/cuda/negative_sampling.cu:10:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/bear/workspace/signn_dgl/src/geometry/cuda/edge_coarsening_impl.cu:8:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/bear/workspace/signn_dgl/src/graph/sampling/randomwalks/randomwalk_gpu.cu:10:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/bear/workspace/signn_dgl/src/graph/transform/cuda/knn.cu:9:0:
/home/bear/workspace/signn_dgl/include/dgl/random.h:18:10: fatal error: pcg_random.hpp: No such file or directory
 #include <pcg_random.hpp>
          ^~~~~~~~~~~~~~~~
compilation terminated.

Can you try running git submodule update --init --recursive. New dependencies were added to dgl so after a fresh clone, you might have to update your submodules.

Hello, thank you for the response, but after I used the git submodule update --init --recursive command, it didn’t download any other content, and I still can’t proceed with the make -j command

(dgl) bear@DGX-Station:~/workspace/dgl$ git submodule update --init --recursive
(dgl) bear@DGX-Station:~/workspace/dgl$

Could you check if PCG exists under the third_party folder?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.