include rcfiles/cudatoolkittrampolinerc;
variable RESTARTNAME is default(nvprof);
variable LDPATH is environment(LD_LIBRARY_PATH);
variable CUPTIPATH is default($RCUDABASE/lib64);
export LD_LIBRARY_PATH=$CUPTIPATH:$LDPATH;
restart($if($expr($CUDAXXYY<13000),
            $if($isdir($CUDADIR),
                $CUDADIR,
                $error($CUDA_ERROR)),
            $error("The tool nvprof is no longer supported starting with CUDA 13.0 Toolkit, please use Nsight Systems (nsys) and Nsight Compute (ncu).")));
