Currently only CUDA is supported by the cudaGraph, but I wonder if a "hiplikeGraphBase" could be implemented instead that is specialised for CUDA, HIP and ROCm as to allow more GPU vendors. If it works, the current cudaGraphBase and cudaGraphExecBase could potentially be replaced with hiplikeGraphBase</*cuda-tag or cuda-settings*/> and hiplikeExecBase</*cuda-tag or cuda-settings*/>.