MCPcopy Create free account
hub / github.com/ROCm/clr / StreamCaptureBlocking

Method StreamCaptureBlocking

hipamd/src/hip_device.cpp:300–309  ·  view source on GitHub ↗

================================================================================================

Source from the content-addressed store, hash-verified

298
299// ================================================================================================
300bool Device::StreamCaptureBlocking() {
301 std::shared_lock lock(streamSetLock);
302 for (auto& it : streamSet) {
303 if (it->GetCaptureStatus() == hipStreamCaptureStatusActive &&
304 it->Flags() != hipStreamNonBlocking) {
305 return true;
306 }
307 }
308 return false;
309}
310
311// ================================================================================================
312bool Device::existsActiveStreamForDevice() {

Callers 2

hipMallocAsyncFunction · 0.45
hipFreeAsyncFunction · 0.45

Calls 2

GetCaptureStatusMethod · 0.80
FlagsMethod · 0.45

Tested by

no test coverage detected