Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
da1d5de2
Unverified
Commit
da1d5de2
authored
Sep 12, 2023
by
xiangyuzhi
Committed by
GitHub
Sep 12, 2023
Browse files
[Sparse] Add cpu compilation support (#6310)
parent
a23b490d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
dgl_sparse/CMakeLists.txt
dgl_sparse/CMakeLists.txt
+1
-0
dgl_sparse/src/cpu/matrix_ops_impl.cc
dgl_sparse/src/cpu/matrix_ops_impl.cc
+10
-0
dgl_sparse/src/matrix_ops_impl.h
dgl_sparse/src/matrix_ops_impl.h
+13
-0
No files found.
dgl_sparse/CMakeLists.txt
View file @
da1d5de2
...
@@ -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
(
...
...
dgl_sparse/src/cpu/matrix_ops_impl.cc
0 → 100644
View file @
da1d5de2
/**
* 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
dgl_sparse/src/matrix_ops_impl.h
0 → 100644
View file @
da1d5de2
/**
* 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_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment