holoscan::utils::cuda::cudaGraphAddNodeCompat
holoscan::utils::cuda::cudaGraphAddNodeCompat
Version-aware wrapper for cudaGraphAddNode that maintains backward compatibility.
This function automatically selects the appropriate CUDA Graph API based on the runtime version:
- CUDA 12.x: Uses cudaGraphAddNode_v2
- CUDA 13.x+: Uses cudaGraphAddNode
This function is thread-safe and uses std::call_once to ensure the symbol is resolved only once.
Returns: cudaError_t CUDA error code