Skip to content

Commit

Permalink
[Misc] Make code compilable with GCC 13 (#7363)
Browse files Browse the repository at this point in the history
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
  • Loading branch information
mfbalin and frozenbugs committed Jun 27, 2024
1 parent 2ee8bc7 commit 489671c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
[submodule "third_party/cuco"]
path = third_party/cuco
url = https://github.com/NVIDIA/cuCollections.git
[submodule "third_party/GKlib"]
path = third_party/GKlib
url = https://github.com/KarypisLab/GKlib.git
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,14 @@ else(EXTERNAL_METIS_PATH)
target_include_directories(dgl PRIVATE "third_party/METIS/include")
# Compile METIS
if(NOT MSVC)
set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third_party/METIS/GKlib")
set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third_party/GKlib")
include(${GKLIB_PATH}/GKlibSystem.cmake)
include_directories(${GKLIB_PATH})
add_library(GKlib ${GKlib_sources})
include_directories("third_party/METIS/include/")
add_subdirectory("third_party/METIS/libmetis/")
list(APPEND DGL_LINKER_LIBS metis)
endif(NOT MSVC)
list(APPEND DGL_LINKER_LIBS metis GKlib)
endif(NOT MSVC)
endif(EXTERNAL_METIS_PATH)


Expand Down
2 changes: 2 additions & 0 deletions src/runtime/dlpack_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <dgl/runtime/ndarray.h>
#include <dlpack/dlpack.h>

#include <cstdint>

#include "runtime_base.h"

// deleter for arrays used by DLPack exporter
Expand Down
1 change: 1 addition & 0 deletions third_party/GKlib
Submodule GKlib added at 8bd6ba

0 comments on commit 489671c

Please sign in to comment.