From fcbd3428d6ab4def19e96ea590bc5419e6ddce75 Mon Sep 17 00:00:00 2001 From: Gary Deng Date: Tue, 8 Oct 2024 13:32:51 -0600 Subject: [PATCH] ASAN env var --- .jenkins/asan.groovy | 4 +++- .jenkins/common.groovy | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.jenkins/asan.groovy b/.jenkins/asan.groovy index 71fbc01c7..844f94d2f 100644 --- a/.jenkins/asan.groovy +++ b/.jenkins/asan.groovy @@ -14,7 +14,9 @@ def runCI = def commonGroovy - def settings = [addressSanitizer: true] + def settings = [ + addressSanitizer: true + settings.cmakeDefines["CMAKE_CXX_COMPILER"]="/opt/rocm/bin/amdclang++"] boolean formatCheck = false diff --git a/.jenkins/common.groovy b/.jenkins/common.groovy index 9f71f01f7..c24b42267 100644 --- a/.jenkins/common.groovy +++ b/.jenkins/common.groovy @@ -57,6 +57,7 @@ def runTestCommand (platform, project, settings) export PATH=/opt/rocm/llvm/bin/:\$PATH export PATH=/opt/rocm/:\$PATH export HSA_XNACK=1 + ASAN_OPTIONS=detect_leaks=0 ${sudo} ${testCommand} """