MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / executeGraph

Method executeGraph

Src/Base/AMReX_GpuDevice.cpp:1096–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096void
1097Device::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

Calls 3

inLaunchRegionFunction · 0.85
inGraphRegionFunction · 0.85
synchronizeFunction · 0.85

Tested by

no test coverage detected