Skip to content

Commit eee9601

Browse files
comments
1 parent e5c3997 commit eee9601

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/config/conduit_setup_execution.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
33
# other details. No copyright assignment is required to contribute to Conduit.
44

5+
# Internal helper used by conduit_enable_execution_target() to switch a
6+
# consumer target's compilable source files to CUDA or HIP when this Conduit
7+
# build exposes device execution.
58
function(_conduit_set_execution_language target language)
69
if(NOT TARGET ${target})
710
message(FATAL_ERROR "conduit_enable_execution_target() target '${target}' does not exist")
@@ -47,6 +50,10 @@ function(_conduit_set_execution_language target language)
4750
endfunction()
4851
4952
53+
# Public helper for downstream CMake targets that want to use Conduit's
54+
# execution support. It links the target to the execution-facing Conduit
55+
# target and, for CUDA/HIP builds, marks the target's sources for device
56+
# compilation.
5057
function(conduit_enable_execution_target)
5158
set(options)
5259
set(singleValueArgs TARGET SCOPE)

0 commit comments

Comments
 (0)