SWDEV-290298 - add a flag to indicate the primary context active status

Change-Id: Id13d132923fcef697b689e75b6aa04060923a2ad


[ROCm/clr commit: 981ef060fb]
This commit is contained in:
haoyuan2 authored and Maneesh Gupta committed 2021-12-09 23:32:16 -05:00
1 bovenliggende f00e0a2df4
commit 9735c1b617
3 files changed
+29 -3

No files matched your search

@@ -349,7 +349,7 @@ hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int* flags, int
}
if (active != nullptr) {
*active = (g_devices[dev] == hip::getCurrentDevice())? 1 : 0;
*active = g_devices[dev]->GetActiveStatus() ? 1 : 0;
}
HIP_RETURN(hipSuccess);