| 1094 | } |
| 1095 | |
| 1096 | void |
| 1097 | Device::executeGraph(const cudaGraphExec_t &graphExec, bool synch) |
| 1098 | { |
| 1099 | if (inLaunchRegion() && inGraphRegion()) |
| 1100 | { |
| 1101 | setStreamIndex(0); |
| 1102 | AMREX_CUDA_SAFE_CALL(cudaGraphLaunch(graphExec, cudaStream())); |
| 1103 | if (synch) { |
| 1104 | synchronize(); |
| 1105 | } |
| 1106 | resetStreamIndex(); |
| 1107 | } |
| 1108 | } |
| 1109 | |
| 1110 | #endif |
| 1111 |
no test coverage detected