fix: allow fork() after zeInit()

- do not release resources derived from parent process
- zeInit() in child should initilize new driver

Related-To: NEO-11761

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-07-23 12:50:37 +00:00
committed by Compute-Runtime-Automation
parent bdb60afa2b
commit 8a7923c6ee
14 changed files with 118 additions and 6 deletions

View File

@@ -218,6 +218,10 @@ unsigned int getProcessId() {
return 0xABCEDF;
}
unsigned int getCurrentProcessId() {
return 0xABCEDF;
}
unsigned long getNumThreads() {
getNumThreadsCalled = true;
return 1;

View File

@@ -22,6 +22,10 @@ unsigned int getProcessId() {
return 0xABCEDF;
}
unsigned int getCurrentProcessId() {
return 0xABCEDF;
}
unsigned long getNumThreads() {
return 1;
}