Skip to content

Commit

Permalink
Move cudax example project to CCCL project examples. (#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper authored Oct 1, 2024
1 parent 808f9c2 commit 57b9899
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 14 deletions.
5 changes: 3 additions & 2 deletions ci/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ workflows:
# Python jobs:
- {jobs: ['test'], project: 'pycuda', ctk: ['12.5']}
# cccl-infra:
- {jobs: ['infra'], project: 'cccl', ctk: '11.1', cxx: ['gcc6', 'clang9']}
- {jobs: ['infra'], project: 'cccl', ctk: 'curr', cxx: ['gcc', 'clang']}
- {jobs: ['infra'], project: 'cccl', ctk: '11.1', cxx: ['gcc6', 'clang9']}
- {jobs: ['infra'], project: 'cccl', ctk: '12.0', cxx: ['gcc12', 'clang14']}
- {jobs: ['infra'], project: 'cccl', ctk: 'curr', cxx: ['gcc', 'clang']}

nightly:
# Increased test coverage compared to nightlies:
Expand Down
11 changes: 0 additions & 11 deletions cudax/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ endif()

option(cudax_ENABLE_HEADER_TESTING "Test that CUDA Experimental's public headers compile." ON)
option(cudax_ENABLE_TESTING "Build CUDA Experimental's tests." ON)
option(cudax_ENABLE_SAMPLES "Build CUDA Experimental's samples." ON)

include(cmake/cudaxBuildCompilerTargets.cmake)
include(cmake/cudaxBuildTargetList.cmake)
Expand All @@ -37,13 +36,3 @@ if (cudax_ENABLE_TESTING)
enable_testing() # Must be in root directory
add_subdirectory(test)
endif()

if (cudax_ENABLE_SAMPLES)
include(ExternalProject)
ExternalProject_Add(cudax_samples
PREFIX samples
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/samples"
BUILD_ALWAYS ON
INSTALL_COMMAND cmake -E echo "Skipping install step.")
add_dependencies(cudax.all cudax_samples)
endif()
14 changes: 13 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,20 @@ set(cmake_cpm_opts

cccl_add_compile_test(test_name
cccl.example
example_project
basic
"default"
${cmake_opts}
${cmake_cpm_opts}
)

find_package(CUDAToolkit REQUIRED)

if (CUDAToolkit_VERSION_MAJOR VERSION_GREATER_EQUAL 12)
cccl_add_compile_test(test_name
cccl.example
cudax
"default"
${cmake_opts}
${cmake_cpm_opts}
)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions examples/cudax/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# Overview

This example extends the `example_project` by additionally enabling the CUDA Experimental library, `cudax`.
See the `example_project`'s README for additional information.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 57b9899

Please sign in to comment.