[SWDEV-469495] Compile blit kernels with -fsanitize=address when asan is enabled.

Change-Id: I96e1abef43317cd58329c4a159f807878bc48cf4


[ROCm/clr commit: e76bf653fb]
This commit is contained in:
ksankisa
2024-06-19 21:08:30 +05:30
committed by Krishna Sankisa
orang tua aacf75f480
melakukan 3bcd901f06
3 mengubah file dengan 16 tambahan dan 0 penghapusan
+5
Melihat File
@@ -576,6 +576,11 @@ bool Device::BlitProgram::create(amd::Device* device, const std::string& extraKe
if (device->settings().kernel_arg_opt_) {
opt += " -Wb,-amdgpu-kernarg-preload-count=8 ";
}
#if defined(__clang__)
#if __has_feature(address_sanitizer)
opt += " -fsanitize=address ";
#endif
#endif
if ((retval = program_->build(devices, opt.c_str(), nullptr, nullptr, GPU_DUMP_BLIT_KERNELS))
!= CL_SUCCESS) {
DevLogPrintfError("Build failed for Kernel: %s with error code %d\n",