Skip to content

Commit

Permalink
updates from cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaseeb123 committed Apr 8, 2024
1 parent 28ed85b commit 0f44faf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 2 additions & 3 deletions cpp/examples/fetch_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ set(CUDF_TAG branch-24.06)
# find or build it via CPM
CPMFindPackage(
NAME cudf
FIND_PACKAGE_ARGUMENTS "HINTS ${cudf_ROOT}/latest"
GIT_REPOSITORY https://github.com/rapidsai/cudf
FIND_PACKAGE_ARGUMENTS "HINTS ${cudf_ROOT}/latest" GIT_REPOSITORY https://github.com/rapidsai/cudf
GIT_TAG ${CUDF_TAG}
GIT_SHALLOW
TRUE
SOURCE_SUBDIR
cpp
)
)
14 changes: 11 additions & 3 deletions cpp/examples/set_cuda_architecture.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@
# the License.
# =============================================================================

# get the CUDF_TAG from fetch_dependencies.cmake (remove all whitespace & parse line: set(CUDF_TAG ..))
execute_process(COMMAND bash -c "sed '/^$/d;s/[[:blank:]]//g' ./fetch_dependencies.cmake | grep 'set(CUDF_TAG' | sed 's/.*CUDF_TAG//' | sed 's/.$//'" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE CUDF_TAG)
# get the CUDF_TAG from fetch_dependencies.cmake (remove all whitespace & parse line: set(CUDF_TAG
# ..))
execute_process(
COMMAND
bash -c
"sed '/^$/d;s/[[:blank:]]//g' ./fetch_dependencies.cmake | grep 'set(CUDF_TAG' | sed 's/.*CUDF_TAG//' | sed 's/.$//'"
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE CUDF_TAG
)

if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/${CUDF_TAG}/RAPIDS.cmake
${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)
${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake
)
endif()
include(${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)

Expand Down

0 comments on commit 0f44faf

Please sign in to comment.