Skip to content

Commit 8edb336

Browse files
committed
fix LocalWorkSize crash
1 parent 3b0530b commit 8edb336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ ur_result_t SanitizerInterceptor::prepareLaunch(
700700
}
701701

702702
if (LaunchInfo.LocalWorkSize.empty()) {
703-
LaunchInfo.LocalWorkSize.reserve(3);
703+
LaunchInfo.LocalWorkSize.resize(3);
704704
// FIXME: This is W/A until urKernelSuggestGroupSize is added
705705
LaunchInfo.LocalWorkSize[0] = 1;
706706
LaunchInfo.LocalWorkSize[1] = 1;

0 commit comments

Comments
 (0)