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

@@ -45,6 +45,10 @@ unsigned int getProcessId() {
return pid;
}
unsigned int getCurrentProcessId() {
return getpid();
}
unsigned long getNumThreads() {
struct stat taskStat;
if (stat("/proc/self/task", &taskStat) == 0) {