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

Change-Id: Id13d132923fcef697b689e75b6aa04060923a2ad
This commit is contained in:
haoyuan2
2021-12-01 10:05:16 -08:00
committed by Maneesh Gupta
parent 9ed0c29bb6
commit 981ef060fb
3 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -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);