-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authors: - Christopher Harris (https://github.com/cwharris) - Michael Demoret (https://github.com/mdemoret-nv) Approvers: - David Gardner (https://github.com/dagardner-nv) URL: #75
- Loading branch information
Showing
6 changed files
with
70 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
From 6ddba385b27f4f7075fcdd5a0916f59944c3ec16 Mon Sep 17 00:00:00 2001 | ||
From: Christopher Harris <[email protected]> | ||
Date: Wed, 7 Aug 2024 21:19:56 +0000 | ||
Subject: [PATCH] fix cccl includes | ||
|
||
--- | ||
CMakeLists.txt | 2 +- | ||
cmake/FindCCCL.cmake | 20 +++++++++++++------- | ||
2 files changed, 14 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 154bbf6..b27d6df 100644 | ||
index 3037a2f..93806d9 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -37,8 +37,11 @@ endif() | ||
# CMake 3.24 can auto-detect GPUs, but it's not standard on any distrobution. For now, rapids-cmake has a utility | ||
# function to do it, so we grab that as a dependency. The user can optionally override GPU_ARCH to specify | ||
# their own | ||
-add_subdirectory(cmake/rapids-cmake) | ||
- | ||
+if(NOT DEFINED rapids-cmake-dir) | ||
+ add_subdirectory(cmake/rapids-cmake) | ||
+else() | ||
+ list(APPEND CMAKE_MODULE_PATH "${rapids-cmake-dir}") | ||
+endif() | ||
include(rapids-cmake) | ||
include(rapids-cpm) | ||
include(rapids-export) | ||
@@ -101,7 +104,7 @@ message(STATUS "Need CCCL. Finding...") | ||
@@ -117,7 +117,7 @@ message(STATUS "Need CCCL. Finding...") | ||
set(CCCL_VERSION "v2.2.0" CACHE STRING "Version of CCCL to use") | ||
include(cmake/FindCCCL.cmake) | ||
|
||
|
@@ -58,3 +54,6 @@ index f6caa75..5ea45e4 100644 | |
|
||
endfunction() | ||
|
||
-- | ||
2.43.2 | ||
|
40 changes: 40 additions & 0 deletions
40
cmake/morpheus_utils/package_config/nlohmann_json/Configure_nlohmann_json.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#============================================================================= | ||
# SPDX-FileCopyrightText: Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# 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. | ||
#============================================================================= | ||
|
||
include_guard(GLOBAL) | ||
|
||
function(morpheus_utils_configure_nlohmann_json) | ||
list(APPEND CMAKE_MESSAGE_CONTEXT "nlohmann_json") | ||
|
||
morpheus_utils_assert_cpm_initialized() | ||
set(nlohmann_json_VERSION "3.11.3" CACHE STRING "Version of nlohmann_json to use") | ||
|
||
rapids_cpm_find(nlohmann_json ${nlohmann_json_VERSION} | ||
GLOBAL_TARGETS | ||
nlohmann_json nlohmann_json::nlohmann_json | ||
BUILD_EXPORT_SET | ||
${PROJECT_NAME}-exports | ||
INSTALL_EXPORT_SET | ||
${PROJECT_NAME}-exports | ||
CPM_ARGS | ||
GIT_REPOSITORY https://github.com/nlohmann/json.git | ||
GIT_TAG "v${nlohmann_json_VERSION}" | ||
OPTIONS "JSON_Install ON" | ||
) | ||
|
||
list(POP_BACK CMAKE_MESSAGE_CONTEXT) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters