Oskar Hubert Weber
ce48114642
fix: do not skip clean up in L0 dllMain
...
Reintroducing the original clean up logic back to L0 dllMain,
to address regressions that need further investigating.
Related-To: NEO-14121
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com >
2025-08-08 15:46:27 +02:00
Oskar Hubert Weber
9055ae8e54
fix: skip teardown clean up when terminating process on Windows
...
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain ,
it's not safe to clean up resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.
Related-To: NEO-14121
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com >
2025-07-22 15:13:11 +02:00
Compute-Runtime-Validation
d952298321
Revert "fix: skip cleanup in L0 DllMain when terminating process"
...
This reverts commit b70c7fd078 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2025-07-07 17:42:50 +02:00
Compute-Runtime-Validation
aa37604e7c
Revert "fix: skip teardown clean up when terminating process on Windows"
...
This reverts commit 66bf978a13 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2025-07-05 06:28:05 +02:00
Oskar Hubert Weber
66bf978a13
fix: skip teardown clean up when terminating process on Windows
...
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain ,
it's not safe to clean up resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.
Related-To: NEO-14121
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com >
2025-07-04 14:05:39 +02:00
Oskar Hubert Weber
b70c7fd078
fix: skip cleanup in L0 DllMain when terminating process
...
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain ,
it's not safe to cleanup resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.
Related-To: NEO-14121
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com >
2025-07-02 11:19:45 +02:00
Compute-Runtime-Validation
890182b093
Revert "fix: skip cleanup in DllMain when terminating process"
...
This reverts commit 0b5c9125ac .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2025-06-17 04:34:30 +02:00
Oskar Hubert Weber
0b5c9125ac
fix: skip cleanup in DllMain when terminating process
...
Per https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain ,
it's not safe to cleanup resources in DllMain when
fdwReason == DLL_PROCESS_DETACH and lpvReserved != NULL (the process is
terminating), e.g. can result in a hang in some cases.
Related-To: NEO-14121
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com >
2025-06-16 11:08:43 +02:00
Mateusz Jablonski
14fd9f3f24
fix: correct using L0 loader functions
...
use zelLoaderTranslateHandle for translating handle to internal handle
get pointer to zelSetDriverTeardown during global ctor
don't load loader library by name
get loader function pointers directly from current process
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-09-04 17:30:25 +02:00
Mateusz Jablonski
36194c4e7d
refactor: correct variable namings
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-11-29 23:49:03 +01:00
Mateusz Jablonski
d56abe6f60
refactor: correct variable naming
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-30 17:26:20 +01:00
Jablonski, Mateusz
d724627098
fix: fix compilation error in clang on Windows (1/n)
...
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com >
2023-10-23 10:36:23 +02:00
Mateusz Jablonski
4f68822a78
fix: don't use static global in global destructor
...
https://github.com/intel/compute-runtime/issues/675
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-09-08 12:51:39 +02:00
Neil R Spruit
a5ca2f44fe
fix: check L0 driver init success before setting teardown in L0 Loader
...
Related-To: LOCI-4499
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2023-06-07 08:19:21 +02:00
Neil R Spruit
102c38fc34
feature: Use L0 Loader teardown callback
...
Related-To: LOCI-4174
- Call zelSetDriverTeardown during L0 Driver teardown to prevent users
from calling into destroyed functions and encountering crashes
during teardown.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-05-02 19:42:06 +02:00
Compute-Runtime-Validation
41ad05eb52
Revert "l0_feature: Use L0 Loader teardown callback"
...
This reverts commit d31b950b9a .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-04-12 06:45:46 +02:00
Neil R Spruit
d31b950b9a
l0_feature: Use L0 Loader teardown callback
...
Related-To: LOCI-4174
- Call zelSetDriverTeardown during L0 Driver teardown to prevent users
from calling into destroyed functions and encountering crashes
during teardown.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-04-11 11:16:26 +02:00
Mateusz Jablonski
933d01549f
refactor l0 core: cleanup cmake files 2/n
...
cleanup files per core/platform, cache and os specific
Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-16 14:09:12 +01:00
Bellekallu Rajkiran
2282f26734
feature(sysman): Support events for multiple devices
...
Related-To: LOCI-3683
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com >
2023-03-07 09:50:32 +01:00
Jitendra Sharma
6968d26f3a
Sysman: Add support for sysman APIs
...
In level_zero/sysman directory This change:
- Adds support for accessing linux based filesystem
- Add support for telemetry
- Add support for LinuxSysmanImp
Related-To: LOCI-3889
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2023-02-28 09:50:17 +01:00
lgotszal
3bd4bca911
Copyright header update
...
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com >
2021-05-17 20:38:19 +02:00
Bartosz Dunajski
40d5cc71c9
Windows includes cleanup
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-11-09 14:35:38 +01:00
Filip Hazubski
c3b8727e97
Remove opencl includes from HwHelper
...
Resolves: NEO-3964
Change-Id: Ie891ba6a205a89b41ca2cce0fa386dc4c93a0aaa
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-10-23 11:10:52 +02:00
Pawel Cieslak
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2020-08-19 16:36:30 +02:00
Spruit, Neil R
e1d9f92b94
Fixed Global Driver to be void * with library unload driver cleanup
...
- Changed Global Driver to be a void * to avoid auto add of Global
Driver Destructor to run before destruction of other L0 data structures
that might be enqueued to destory in static object destructors.
- Added register of library unload driverdestructor to cleanup
driver/device as the last destructor run.
Change-Id: I8ba6c5c27424b942a86a2613edd52fc682ab1c64
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2020-06-22 12:59:03 +02:00
Brandon Fliflet
27f4bce42f
Initial support for oneAPI Level Zero
...
Change-Id: I221df8427b1844237a4d9d900c58512706b0be0f
2020-03-06 14:53:29 +01:00