Skip to content

Commit

Permalink
Add cudax_ENABLE_CUDASTF_DEBUG option.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Oct 11, 2024
1 parent 717fb0c commit 914d91b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"cudax_ENABLE_TESTING": true,
"cudax_ENABLE_EXAMPLES": true,
"cudax_ENABLE_CUDASTF_BOUNDSCHECK": true,
"cudax_ENABLE_CUDASTF_DEBUG": false,
"cudax_ENABLE_CUDASTF_MATHLIBS": false,
"cudax_ENABLE_DIALECT_CPP17": true,
"cudax_ENABLE_DIALECT_CPP20": true
Expand All @@ -74,9 +75,10 @@
"displayName": "all-dev debug",
"inherits": "all-dev",
"cacheVariables": {
"CCCL_ENABLE_BENCHMARKS": false,
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CUDA_FLAGS": "-G"
"CMAKE_CUDA_FLAGS": "-G",
"CCCL_ENABLE_BENCHMARKS": false,
"cudax_ENABLE_CUDASTF_DEBUG": true
}
},
{
Expand Down
6 changes: 6 additions & 0 deletions cudax/cmake/cudaxSTFConfigureTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ function(cudax_stf_configure_target target_name)
"CUDASTF_BOUNDSCHECK"
)
endif()

if (cudax_ENABLE_CUDASTF_DEBUG)
target_compile_definitions(${target_name} PRIVATE
"CUDASTF_DEBUG"
)
endif()
endfunction()

0 comments on commit 914d91b

Please sign in to comment.