Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cugraph python build #2378

Merged
merged 97 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
5c0378c
install required dependencies in the .toml file, remove setuptools ex…
Jun 29, 2022
c8cba35
update setup.py
Jun 29, 2022
c2e51b2
update the files to be ignored
Jun 29, 2022
9aad42d
add scikit build to the list of dependencies in cuda11.5.yml
Jun 29, 2022
34fb5bf
add cmake to the list of dependencies to be installed
Jun 29, 2022
499a428
add cmake file for each dir containing source files
Jun 29, 2022
5aa278e
update docstrings
Jun 29, 2022
f6bca73
add path to libcugraph for cmake, add option to find libcugraph inste…
Jun 29, 2022
1efb09d
update pylibcugraph setup file to leverage scikit build instead of se…
Jun 29, 2022
6966a93
add cmake file for each dir containing source files
Jun 29, 2022
33f5b88
get CONDA_PREFIX
Jun 29, 2022
cfa4fd7
update the type check
Jun 29, 2022
f159367
define function get_cuda_version_from_header in setuputils.py
Jun 29, 2022
0faab0f
ignore cufile.log
Jun 29, 2022
2a4d6e4
remove cupy-cuda{version} from the list of packages required to be in…
Jun 29, 2022
10f121a
remove outdated code
Jun 29, 2022
531061e
fix flake8
Jun 29, 2022
aa5759b
add cmake and scikit-build to the list of packages to install
Jun 29, 2022
69a6e9a
add cupy-cuda
Jun 29, 2022
e650bc8
update install_requires
Jun 29, 2022
9741795
fix flake8
Jun 29, 2022
6858db8
import get_cuda_version_from_header
Jun 29, 2022
3171be3
update build script
Jun 29, 2022
1e5b85e
remove install prefix
Jun 30, 2022
488a8af
remove install prefix from pylibcugraph build
Jun 30, 2022
bd9783a
move primities out of cugraph public API
ChuckHastings Jul 11, 2022
9181877
move graph_utils out of public headers
ChuckHastings Jul 11, 2022
7a67e3f
fix clang-format issues
ChuckHastings Jul 11, 2022
545b004
update branch with the latest cugraph
Jul 11, 2022
d83e8f4
Merge remote-tracking branch 'upstream/clean_up_public_api' into bran…
Jul 11, 2022
a106866
update cmake, exclude cugraph/internals from the build only for now
Jul 12, 2022
65d767c
add cugraph/internals to the CMakeLists, build cugraph and pylibcugra…
Jul 12, 2022
803551f
skip libcugraph build if there is a prior installation
Jul 13, 2022
cad115d
add debug print
Jul 13, 2022
e84ae6a
copy directories
Jul 14, 2022
a7c847d
update cmakelist
Jul 14, 2022
fe1e4a9
add debug print
Jul 18, 2022
77b3a98
add debug prints
Jul 18, 2022
08ce91a
debug
Jul 18, 2022
54927f6
install libcudf
Jul 18, 2022
ca62d26
install cugraph_dev_cuda11.5
Jul 18, 2022
7f59de9
update conda env
Jul 18, 2022
3a214c4
Merge remote-tracking branch 'upstream/branch-22.08' into branch-22.0…
Jul 18, 2022
10f82b1
set always yes
Jul 18, 2022
b435688
fix typo
Jul 19, 2022
049f073
Make cuco a private dependency.
vyasr Jul 19, 2022
9b9c2eb
Use rapids-cmake for downloading cuco.
vyasr Jul 19, 2022
dda86e4
clean repo, remove libcudacxx from INSTALL_EXPORT_SET
Jul 19, 2022
4e08e7b
Update cpp/CMakeLists.txt
vyasr Jul 20, 2022
5238e29
Merge remote-tracking branch 'upstream/build/cuco_private' into branc…
Jul 20, 2022
89f90e2
disabling the cpp tests temporarily
Jul 20, 2022
65a0a9b
add core_number to cmake
Jul 20, 2022
f48955a
Explicitly add private links to cuco for tests that need it due to ac…
vyasr Jul 21, 2022
f08929b
Fix typo.
vyasr Jul 21, 2022
f423ab0
Add one more test.
vyasr Jul 22, 2022
23421e6
Add more tests.
vyasr Jul 22, 2022
b02e046
Fix typo.
vyasr Jul 22, 2022
0f331fe
Add one more test.
vyasr Jul 22, 2022
3311493
Add a couple more tests.
vyasr Jul 22, 2022
45dd98a
Merge remote-tracking branch 'origin/branch-22.08' into build/cuco_pr…
vyasr Jul 22, 2022
6f3f385
Merge remote-tracking branch 'upstream/build/cuco_private' into branc…
Jul 22, 2022
1e1c959
update CMakeList and enable build of c++ tests
Jul 22, 2022
647bff5
remove cython core number from python cugraph CMakeList
Jul 22, 2022
8b31117
remove cython core_number from the list of targets using numpy
Jul 22, 2022
e7ba66b
Merge remote-tracking branch 'upstream/branch-22.08' into branch-22.0…
Jul 26, 2022
090e567
update setup file, remove outdated docstrings
Jul 26, 2022
96e4bb7
remove cmake setuptools from all environments
Jul 26, 2022
b7310f3
remove outdate docstrings and unused env variables
Jul 26, 2022
7a14588
add header file as a target based property
Jul 26, 2022
da08014
add additional path to find libcugraph to 'INSTALL_RPATH'
Jul 26, 2022
d601eaa
add subdir to the appropriate CMake list
Jul 26, 2022
3cf6f39
fix typo
Jul 26, 2022
f3e9d36
update .toml files
Jul 27, 2022
19e7dd7
fix typo
Jul 27, 2022
9e9155e
do a single fetch of the rapids cmake file
Jul 27, 2022
b759fcd
do not include 'numpy C-API' because it is not used by any targets
Jul 27, 2022
00eec4a
fix style
Jul 27, 2022
109ac6e
do not include 'numpy C-API' because it is not used by any targets
Jul 27, 2022
7381462
add end of line
Jul 27, 2022
014a342
remove outdated docstrings
Jul 27, 2022
21e6b5e
add end of line
Jul 27, 2022
50d320a
install metadata in experimental.datasets
Jul 27, 2022
c45269e
fix style
Jul 27, 2022
4ace3ec
remove print
Jul 27, 2022
fc4a22b
include package data
Jul 27, 2022
4dff3ca
remove unused code
Jul 27, 2022
7c46801
simplify function call
Jul 27, 2022
aea415e
simplify function call
Jul 27, 2022
68e38d5
remove cmake from the ci conda env
Jul 27, 2022
759a6e5
remove 'tool black' from cugraph
Jul 28, 2022
d30b051
update setup file
Jul 28, 2022
bfd3d87
update RPATH in the CMake lists
Jul 28, 2022
bdc936f
update script to fetch the latest rapids cmake
Jul 28, 2022
66df884
fix style
Jul 28, 2022
3413fdb
disable rapids cmake version bump
Jul 28, 2022
fea0bfb
re-enable rapids cmake version bump
Jul 28, 2022
edf35f7
add end of line
Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ junit-cugraph.xml
test-results

## Python build directories & artifacts
dask-worker-space/
htmlcov
dist/
cugraph.egg-info/
python/build
python/cugraph/bindings/*.cpp
wheels/
_skbuild/
cufile.log

## pylibcugraph build directories & artifacts
python/pylibcugraph/pylibcugraph.egg-info
Expand Down
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ if hasArg clean; then
pushd ${REPODIR}/python > /dev/null
rm -rf dist dask-worker-space cugraph/raft *.egg-info
find . -name "__pycache__" -type d -exec rm -rf {} \; > /dev/null 2>&1
find . -type d -name _skbuild -exec rm -rf {} \; > /dev/null 2>&1
find . -type d -name dist -exec rm -rf {} \; > /dev/null 2>&1
find . -name "*.cpp" -type f -delete
find . -name "*.cpython*.so" -type f -delete
find . -type d -name _external_repositories -exec rm -rf {} \; > /dev/null 2>&1
Expand Down Expand Up @@ -230,7 +232,8 @@ if buildAll || hasArg pylibcugraph; then
# setup.py references an env var CUGRAPH_BUILD_PATH to find the libcugraph
# build. If not set by the user, set it to LIBCUGRAPH_BUILD_DIR
CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH:=${LIBCUGRAPH_BUILD_DIR}}
env CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH} python setup.py build_ext --inplace --library-dir=${LIBCUGRAPH_BUILD_DIR}
python setup.py build_ext --inplace -- -DFIND_CUGRAPH_CPP=ON \
-Dcugraph_ROOT=${LIBCUGRAPH_BUILD_DIR} -- -j${PARALLEL_LEVEL:-1}
if [[ ${INSTALL_TARGET} != "" ]]; then
env CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH} python setup.py install
fi
Expand All @@ -243,7 +246,8 @@ if buildAll || hasArg cugraph; then
# setup.py references an env var CUGRAPH_BUILD_PATH to find the libcugraph
# build. If not set by the user, set it to LIBCUGRAPH_BUILD_DIR
CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH:=${LIBCUGRAPH_BUILD_DIR}}
env CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH} python setup.py build_ext --inplace --library-dir=${LIBCUGRAPH_BUILD_DIR}
python setup.py build_ext --inplace -- -DFIND_CUGRAPH_CPP=ON \
-Dcugraph_ROOT=${LIBCUGRAPH_BUILD_DIR} -- -j${PARALLEL_LEVEL:-1}
if [[ ${INSTALL_TARGET} != "" ]]; then
env CUGRAPH_BUILD_PATH=${CUGRAPH_BUILD_PATH} python setup.py install
fi
Expand Down
1 change: 1 addition & 0 deletions conda/environments/cugraph_dev_cuda11.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- clang=11.1.0
- clang-tools=11.1.0
- cmake>=3.20.1,!=3.23.0
- scikit-build>=0.13.1
- python>=3.8,<3.10
- notebook>=0.5.0
- boost
Expand Down
1 change: 1 addition & 0 deletions conda/environments/cugraph_dev_cuda11.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- clang=11.1.0
- clang-tools=11.1.0
- cmake>=3.20.1,!=3.23.0
- scikit-build>=0.13.1
- python>=3.8,<3.10
- notebook>=0.5.0
- boost
Expand Down
1 change: 1 addition & 0 deletions conda/environments/cugraph_dev_cuda11.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- clang=11.1.0
- clang-tools=11.1.0
- cmake>=3.20.1,!=3.23.0
- scikit-build>=0.13.1
- python>=3.8,<3.10
- notebook>=0.5.0
- boost
Expand Down
3 changes: 3 additions & 0 deletions conda/recipes/cugraph/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ cxx_compiler_version:
cuda_compiler:
- nvcc

cmake_version:
- ">=3.20.1,!=3.23.0"

sysroot_version:
- "2.17"
2 changes: 2 additions & 0 deletions conda/recipes/cugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ build:

requirements:
build:
- cmake {{ cmake_version }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
- python x.x
- cython>=0.29,<0.30
- scikit-build>=0.13.1
- libcugraph={{ version }}
- libraft-headers {{ minor_version }}
- pyraft {{ minor_version }}
Expand Down
3 changes: 3 additions & 0 deletions conda/recipes/pylibcugraph/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ cxx_compiler_version:
cuda_compiler:
- nvcc

cmake_version:
- ">=3.20.1,!=3.23.0"

sysroot_version:
- "2.17"
2 changes: 2 additions & 0 deletions conda/recipes/pylibcugraph/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ build:

requirements:
build:
- cmake {{ cmake_version }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
- python x.x
- cython>=0.29,<0.30
- scikit-build>=0.13.1
- libcugraph={{ version }}
- ucx-py {{ ucx_py_version }}
- ucx-proc=*=gpu
Expand Down
4 changes: 1 addition & 3 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
#=============================================================================

cmake_minimum_required(VERSION 3.20.1 FATAL_ERROR)
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-22.08/RAPIDS.cmake
${CMAKE_BINARY_DIR}/RAPIDS.cmake)
include(${CMAKE_BINARY_DIR}/RAPIDS.cmake)

include(../fetch_rapids.cmake)
include(rapids-cmake)
include(rapids-cpm)
include(rapids-cuda)
Expand Down
3 changes: 1 addition & 2 deletions cpp/cmake/thirdparty/get_libcudacxx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
function(find_and_configure_libcudacxx)
include(${rapids-cmake-dir}/cpm/libcudacxx.cmake)

rapids_cpm_libcudacxx(BUILD_EXPORT_SET cugraph-exports
INSTALL_EXPORT_SET cugraph-exports)
rapids_cpm_libcudacxx(BUILD_EXPORT_SET cugraph-exports)

endfunction()

Expand Down
17 changes: 17 additions & 0 deletions fetch_rapids.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-22.08/RAPIDS.cmake
jnke2016 marked this conversation as resolved.
Show resolved Hide resolved
${CMAKE_BINARY_DIR}/RAPIDS.cmake
)
include(${CMAKE_BINARY_DIR}/RAPIDS.cmake)
84 changes: 84 additions & 0 deletions python/cugraph/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

cmake_minimum_required(VERSION 3.20.1 FATAL_ERROR)

set(cugraph_version 22.08.00)

include(../../fetch_rapids.cmake)

project(
cugraph-python
VERSION ${cugraph_version}
LANGUAGES # TODO: Building Python extension modules via the python_extension_module requires the C
# language to be enabled here. The test project that is built in scikit-build to verify
# various linking options for the python library is hardcoded to build with C, so until
# that is fixed we need to keep C.
C CXX
)

################################################################################
# - User Options --------------------------------------------------------------
option(FIND_CUGRAPH_CPP "Search for existing CUGRAPH C++ installations before defaulting to local files"
OFF
)

# If the user requested it, we attempt to find CUGRAPH.
if(FIND_CUGRAPH_CPP)
find_package(cugraph ${cugraph_version} REQUIRED)
else()
set(cugraph_FOUND OFF)
endif()

if(NOT cugraph_FOUND)
# TODO: This will not be necessary once we upgrade to CMake 3.22, which will pull in the required
# languages for the C++ project even if this project does not require those languges.
include(rapids-cuda)
rapids_cuda_init_architectures(CUGRAPH)
enable_language(CUDA)

# Since cugraph only enables CUDA optionally, we need to manually include the file that
# rapids_cuda_init_architectures relies on `project` including.

include("${CMAKE_PROJECT_cugraph-python_INCLUDE}")

add_subdirectory(../../cpp cugraph-cpp)

install(TARGETS cugraph DESTINATION cugraph/library)
endif()


include(rapids-cython)
rapids_cython_init()

add_subdirectory(cugraph/centrality)
add_subdirectory(cugraph/community)
add_subdirectory(cugraph/components)
add_subdirectory(cugraph/cores)
add_subdirectory(cugraph/dask/centrality)
add_subdirectory(cugraph/dask/comms)
add_subdirectory(cugraph/dask/community)
add_subdirectory(cugraph/dask/components)
add_subdirectory(cugraph/dask/link_analysis)
add_subdirectory(cugraph/dask/structure)
add_subdirectory(cugraph/generators)
add_subdirectory(cugraph/internals)
add_subdirectory(cugraph/layout)
add_subdirectory(cugraph/linear_assignment)
add_subdirectory(cugraph/link_analysis)
add_subdirectory(cugraph/link_prediction)
add_subdirectory(cugraph/sampling)
add_subdirectory(cugraph/structure)
add_subdirectory(cugraph/tree)
add_subdirectory(cugraph/utilities)
29 changes: 29 additions & 0 deletions python/cugraph/cugraph/centrality/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(cython_sources
betweenness_centrality_wrapper.pyx
edge_betweenness_centrality_wrapper.pyx
)
set(linked_libraries cugraph::cugraph)

rapids_cython_create_modules(
CXX
SOURCE_FILES "${cython_sources}"
LINKED_LIBRARIES "${linked_libraries}" MODULE_PREFIX centrality_
)

foreach(cython_module IN LISTS RAPIDS_CYTHON_CREATED_TARGETS)
set_target_properties(${cython_module} PROPERTIES INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../library")
endforeach()
34 changes: 34 additions & 0 deletions python/cugraph/cugraph/community/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(cython_sources
ecg_wrapper.pyx egonet_wrapper.pyx
ktruss_subgraph_wrapper.pyx
leiden_wrapper.pyx
louvain_wrapper.pyx
spectral_clustering_wrapper.pyx
subgraph_extraction_wrapper.pyx
triangle_count_wrapper.pyx
)

set(linked_libraries cugraph::cugraph)
rapids_cython_create_modules(
CXX
SOURCE_FILES "${cython_sources}"
LINKED_LIBRARIES "${linked_libraries}" MODULE_PREFIX community_
)

foreach(cython_module IN LISTS RAPIDS_CYTHON_CREATED_TARGETS)
set_target_properties(${cython_module} PROPERTIES INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../library")
endforeach()
25 changes: 25 additions & 0 deletions python/cugraph/cugraph/components/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(cython_sources connectivity_wrapper.pyx)
jnke2016 marked this conversation as resolved.
Show resolved Hide resolved
set(linked_libraries cugraph::cugraph)
rapids_cython_create_modules(
CXX
SOURCE_FILES "${cython_sources}"
LINKED_LIBRARIES "${linked_libraries}" MODULE_PREFIX components_
)

foreach(cython_module IN LISTS RAPIDS_CYTHON_CREATED_TARGETS)
set_target_properties(${cython_module} PROPERTIES INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../library")
endforeach()
25 changes: 25 additions & 0 deletions python/cugraph/cugraph/cores/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(cython_sources k_core_wrapper.pyx)
set(linked_libraries cugraph::cugraph)
rapids_cython_create_modules(
CXX
SOURCE_FILES "${cython_sources}"
LINKED_LIBRARIES "${linked_libraries}" MODULE_PREFIX cores_
)

foreach(cython_module IN LISTS RAPIDS_CYTHON_CREATED_TARGETS)
set_target_properties(${cython_module} PROPERTIES INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../library")
endforeach()
25 changes: 25 additions & 0 deletions python/cugraph/cugraph/dask/centrality/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

set(cython_sources mg_katz_centrality_wrapper.pyx)
set(linked_libraries cugraph::cugraph)
rapids_cython_create_modules(
CXX
SOURCE_FILES "${cython_sources}"
LINKED_LIBRARIES "${linked_libraries}" MODULE_PREFIX centrality_
)

foreach(cython_module IN LISTS RAPIDS_CYTHON_CREATED_TARGETS)
set_target_properties(${cython_module} PROPERTIES INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../library")
jnke2016 marked this conversation as resolved.
Show resolved Hide resolved
endforeach()
Loading