Files
project_6/cccl_upstream/cudax/examples/stf/CMakeLists.txt
muh-bot dedf08166a [CCCL] Add missing CCCL components: c2h, nvbench_helper, cmake, cudax, AGENTS.md
Added 863 files from NVIDIA/cccl sparse checkout:
- c2h/ (27 files): Catch2 test helpers — generators, validators, runner
- nvbench_helper/ (10 files): Benchmark harness utilities
- cmake/ (29 files): CMake presets and build helpers
- cudax/ (794 files): Experimental CUDA extensions
- AGENTS.md: NVIDIA's official AI agent instructions for CCCL
- CMakePresets.json: Standardized build configurations
- cccl-version.json: Version tracking

Also added CCCL_ASSET_MAP.md mapping all 4295 CCCL files to
competition value and PRD items.

cccl_upstream now covers 100% of competition-critical assets:
- 27 tuning headers (SM80/90/100 benchmark data)
- 32 dispatch headers (algorithm implementations)
- 60 Thrust examples (correctness verification)
- 217 CUB Catch2 tests (regression matrix)
- 153 CUB benchmarks (parameter space search)
- 18 CUB examples (API verification)
- 27 test helpers + benchmark harness
- 794 cudax experimental extensions
2026-08-06 02:14:18 +00:00

125 lines
3.1 KiB
CMake

set(
stf_example_sources
01-axpy.cu
01-axpy-cuda_kernel.cu
01-axpy-cuda_kernel_chain.cu
02-axpy-host_launch.cu
03-temporary-data.cu
04-fibonacci.cu
04-fibonacci-run_once.cu
08-cub-reduce.cu
axpy-annotated.cu
void_data_interface.cu
explicit_data_places.cu
partitioned_axpy.cu
thrust_zip_iterator.cu
1f1b.cu
)
# Examples which rely on code generation (parallel_for or launch)
set(
stf_example_codegen_sources
01-axpy-launch.cu
01-axpy-parallel_for.cu
binary_fhe.cu
binary_fhe_stackable.cu
09-dot-reduce.cu
cfd.cu
custom_data_interface.cu
fdtd_mgpu.cu
fdtd_while.cu
fdtd_repeat_n.cu
frozen_data_init.cu
graph_algorithms/degree_centrality.cu
graph_algorithms/jaccard.cu
graph_algorithms/pagerank.cu
graph_algorithms/pagerank_batched.cu
graph_algorithms/pagerank_while.cu
graph_algorithms/tricount.cu
graph_scope.cu
heat.cu
heat_mgpu.cu
jacobi.cu
jacobi_pfor.cu
jacobi_stackable.cu
jacobi_stackable_raii.cu
jacobi_update_cond.cu
launch_histogram.cu
launch_scan.cu
launch_sum.cu
launch_sum_cub.cu
linear_algebra/burger.cu
linear_algebra/burger_sensitivity.cu
linear_algebra/cg_csr.cu
linear_algebra/cg_csr_stackable.cu
logical_gates_composition.cu
mandelbrot.cu
parallel_for_2D.cu
pi.cu
scan.cu
sqrt_newton_stackable.cu
standalone-launches.cu
word_count.cu
word_count_reduce.cu
)
# Examples using CUBLAS, CUSOLVER...
set(
stf_example_mathlib_sources
linear_algebra/06-pdgemm.cu
linear_algebra/06-pdgemm-stackable.cu
linear_algebra/07-cholesky.cu
linear_algebra/07-potri.cu
linear_algebra/cg_dense_2D.cu
linear_algebra/strassen.cu
)
cccl_get_cudatoolkit()
## cudax_add_stf_example
#
# Add an stf example executable and register it with ctest.
#
# target_name_var: Variable name to overwrite with the name of the example
# target. Useful for modifying the example/target after creation.
# source: The source file for the example.
#
# Additional args are passed to cudax_stf_configure_target.
function(cudax_add_stf_example target_name_var source)
get_filename_component(dir ${source} DIRECTORY)
get_filename_component(filename ${source} NAME_WE)
if (dir)
set(filename "${dir}/${filename}")
endif()
string(REPLACE "/" "." example_name "stf/${filename}")
set(example_target cudax.example.${example_name})
cccl_add_executable(${example_target} SOURCES ${source} ADD_CTEST)
cudax_stf_configure_target(${example_target} ${ARGN})
target_link_libraries(
${example_target}
PRIVATE #
cudax.compiler_interface
cudax.examples.thrust
)
set(${target_name_var} ${example_target} PARENT_SCOPE)
endfunction()
foreach (source IN LISTS stf_example_sources)
cudax_add_stf_example(example_target "${source}")
endforeach()
if (cudax_ENABLE_CUDASTF_CODE_GENERATION)
foreach (source IN LISTS stf_example_codegen_sources)
cudax_add_stf_example(example_target "${source}")
endforeach()
endif()
if (cudax_ENABLE_CUDASTF_MATHLIBS)
foreach (source IN LISTS stf_example_mathlib_sources)
cudax_add_stf_example(example_target "${source}" LINK_MATHLIBS)
endforeach()
endif()