mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
bdb60afa2b
commit
8a7923c6ee
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user