Skip to content

Commit d05b5d5

Browse files
committed
init LaunchInfo
1 parent 75a82aa commit d05b5d5

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

source/loader/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ if(UR_ENABLE_SANITIZER)
136136
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_buffer.cpp
137137
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_buffer.hpp
138138
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_ddi.cpp
139+
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_ddi.hpp
139140
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_interceptor.cpp
140141
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_interceptor.hpp
141142
${CMAKE_CURRENT_SOURCE_DIR}/layers/sanitizer/asan/asan_libdevice.hpp

source/loader/layers/sanitizer/asan/asan_ddi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunch(
464464
LaunchInfo LaunchInfo(GetContext(hQueue), GetDevice(hQueue),
465465
pGlobalWorkSize, pLocalWorkSize, pGlobalWorkOffset,
466466
workDim);
467+
UR_CALL(LaunchInfo.Data.syncToDevice(hQueue));
467468

468469
UR_CALL(getAsanInterceptor()->preLaunchKernel(hKernel, hQueue, LaunchInfo));
469470

source/loader/layers/sanitizer/asan/asan_libdevice.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct AsanRuntimeData {
6666
uint32_t Debug = 0;
6767

6868
int ReportFlag = 0;
69-
AsanErrorReport Report[ASAN_MAX_NUM_REPORTS];
69+
AsanErrorReport Report[ASAN_MAX_NUM_REPORTS] = {};
7070
};
7171

7272
constexpr unsigned ASAN_SHADOW_SCALE = 4;

0 commit comments

Comments
 (0)