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

Change-Id: I96e1abef43317cd58329c4a159f807878bc48cf4
Cette révision appartient à :
ksankisa
2024-06-19 21:08:30 +05:30
révisé par Krishna Sankisa
Parent 6df2da65cd
révision e76bf653fb
3 fichiers modifiés avec 16 ajouts et 0 suppressions
+5
Voir le fichier
@@ -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",