Skip to content

Commit

Permalink
set cuda_architectures in each example
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaseeb123 committed Apr 1, 2024
1 parent 90bd8b0 commit 28ed85b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ci/run_cudf_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ compute-sanitizer --tool memcheck ./strings/build/custom_optimized ./strings/bui
compute-sanitizer --tool memcheck ./strings/build/custom_prealloc ./strings/build/names.csv
compute-sanitizer --tool memcheck ./strings/build/custom_with_malloc ./strings/build/names.csv

exit ${EXITCODE}
exit ${EXITCODE}
2 changes: 1 addition & 1 deletion ci/test_cpp_common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Copyright (c) 2022-2024, NVIDIA CORPORATION.

set -euo pipefail

Expand Down
4 changes: 4 additions & 0 deletions cpp/examples/basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.26.4)

include(../set_cuda_architecture.cmake)

# initialize cuda architecture
rapids_cuda_init_architectures(basic_example)
rapids_cuda_set_architectures(RAPIDS)

project(
basic_example
VERSION 0.0.1
Expand Down
4 changes: 4 additions & 0 deletions cpp/examples/nested_types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.26.4)

include(../set_cuda_architecture.cmake)

# initialize cuda architecture
rapids_cuda_init_architectures(nested_types)
rapids_cuda_set_architectures(RAPIDS)

project(
nested_types
VERSION 0.0.1
Expand Down
4 changes: 0 additions & 4 deletions cpp/examples/set_cuda_architecture.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ endif()
include(${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)

include(rapids-cuda)

# initialize cuda architectures
rapids_cuda_init_architectures(basic_examples)
rapids_cuda_set_architectures(RAPIDS)
4 changes: 4 additions & 0 deletions cpp/examples/strings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.26.4)

include(../set_cuda_architecture.cmake)

# initialize cuda architecture
rapids_cuda_init_architectures(strings_examples)
rapids_cuda_set_architectures(RAPIDS)

project(
strings_examples
VERSION 0.0.1
Expand Down

0 comments on commit 28ed85b

Please sign in to comment.