Unverified Commit da1d5de2 authored by xiangyuzhi's avatar xiangyuzhi Committed by GitHub
Browse files

[Sparse] Add cpu compilation support (#6310)

parent a23b490d
...@@ -38,6 +38,7 @@ set(SPARSE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include") ...@@ -38,6 +38,7 @@ set(SPARSE_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
file(GLOB SPARSE_HEADERS ${SPARSE_INCLUDE}) file(GLOB SPARSE_HEADERS ${SPARSE_INCLUDE})
file(GLOB SPARSE_SRC file(GLOB SPARSE_SRC
${SPARSE_DIR}/*.cc ${SPARSE_DIR}/*.cc
${SPARSE_DIR}/cpu/*.cc
) )
add_library(${LIB_DGL_SPARSE_NAME} SHARED ${SPARSE_SRC} ${SPARSE_HEADERS}) add_library(${LIB_DGL_SPARSE_NAME} SHARED ${SPARSE_SRC} ${SPARSE_HEADERS})
target_include_directories( target_include_directories(
......
/**
* Copyright (c) 2023 by Contributors
* @file cpu/matrix_ops_impl.cc
* @brief DGL C++ matrix operators.
*/
#include "./matrix_ops_impl.h"
namespace dgl {
namespace sparse {} // namespace sparse
} // namespace dgl
/**
* Copyright (c) 2023 by Contributors
* @file matrix_ops_impl.h
* @brief DGL C++ sparse matrix operator implementations.
*/
#ifndef DGL_SPARSE_MATRIX_OPS_IMPL_H_
#define DGL_SPARSE_MATRIX_OPS_IMPL_H_
namespace dgl {
namespace sparse {}
} // namespace dgl
#endif // DGL_SPARSE_MATRIX_OPS_IMPL_H_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment