File tree 3 files changed +17
-4
lines changed
layers/exception_sanitizer
3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,18 @@ else()
206
206
endif ()
207
207
endif ()
208
208
209
+ if (UR_ENABLE_EXCEPTION_SANITIZER)
210
+ if (APPLE )
211
+ message (WARNING "Exception sanitizer layer isn't supported on macOS" )
212
+ set (UR_ENABLE_EXCEPTION_SANITIZER OFF )
213
+ elseif (WIN32 )
214
+ message (WARNING "Exception sanitizer layer isn't supported on Windows" )
215
+ set (UR_ENABLE_EXCEPTION_SANITIZER OFF )
216
+ else ()
217
+ add_compile_definitions (UR_ENABLE_EXCEPTION_SANITIZER)
218
+ endif ()
219
+ endif ()
220
+
209
221
if (UR_USE_ASAN)
210
222
add_sanitizer_flag(address)
211
223
endif ()
Original file line number Diff line number Diff line change @@ -4898,8 +4898,9 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp(
4898
4898
phEvent, // /< [out][optional] return an event object that will be signaled by the
4899
4899
// /< completion of this command in the next execution of the
4900
4900
// /< command-buffer.
4901
- ur_exp_command_buffer_command_handle_t
4902
- *phCommand // /< [out][optional] Handle to this command.
4901
+ ur_exp_command_buffer_command_handle_t *
4902
+ phCommand // /< [out][optional] Handle to this command. Only available if the
4903
+ // /< command-buffer is updatable.
4903
4904
) {
4904
4905
auto pfnAppendKernelLaunchExp =
4905
4906
getContext ()->urDdiTable .CommandBufferExp .pfnAppendKernelLaunchExp ;
Original file line number Diff line number Diff line change 27
27
#include " sanitizer/ur_sanitizer_layer.hpp"
28
28
#endif
29
29
#if UR_ENABLE_EXCEPTION_SANITIZER
30
- #include " exception-sanitizer /ur_exception_sanitizer_layer.hpp"
30
+ #include " exception_sanitizer /ur_exception_sanitizer_layer.hpp"
31
31
#endif
32
32
33
33
#include < atomic>
@@ -89,7 +89,7 @@ class __urdlllocal context_t : public AtomicSingleton<context_t> {
89
89
#endif
90
90
#if UR_ENABLE_EXCEPTION_SANITIZER
91
91
{ur_exception_sanitizer_layer::getContext (),
92
- ur_exception_sanitizer_layer::forceDelete},
92
+ ur_exception_sanitizer_layer::context_t :: forceDelete},
93
93
#endif
94
94
};
95
95
You can’t perform that action at this time.
0 commit comments