From b70d003fb80249c2da7d773ffe8836d53ee27bbc Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <frank.winklmeier@cern.ch>
Date: Thu, 13 Feb 2025 09:46:35 +0000
Subject: [PATCH] Merge branch 'AthExCUDAFix-main-20240315' into 'main'

AthExCUDA (Debug Build) Fix, main branch (2024.03.15.)

See merge request atlas/athena!69855

(cherry picked from commit 47dd9b96e963681d3e60e90a28c17c8f718145b1)

2d8b17d1 Turn off vptr sanitization for the execute function.

Co-authored-by: Walter Lampl <walter.lampl@cern.ch>
---
 .../AthExCUDA/src/TrackParticleCalibratorExampleAlg.h     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Control/AthenaExamples/AthExCUDA/src/TrackParticleCalibratorExampleAlg.h b/Control/AthenaExamples/AthExCUDA/src/TrackParticleCalibratorExampleAlg.h
index dfd6bb0766fd..f4d2c5066e49 100644
--- a/Control/AthenaExamples/AthExCUDA/src/TrackParticleCalibratorExampleAlg.h
+++ b/Control/AthenaExamples/AthExCUDA/src/TrackParticleCalibratorExampleAlg.h
@@ -1,6 +1,6 @@
 // Dear emacs, this is -*- c++ -*-
 //
-// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
 //
 #ifndef ATHEXCUDA_TRACKPARTICLECALIBRATOREXAMPLEALG_H
 #define ATHEXCUDA_TRACKPARTICLECALIBRATOREXAMPLEALG_H
@@ -38,7 +38,11 @@ class TrackParticleCalibratorExampleAlg : public AthReentrantAlgorithm {
   virtual StatusCode initialize() override;
 
   /// Function executing the algorithm
-  virtual StatusCode execute(const EventContext& ctx) const override;
+  virtual StatusCode execute(const EventContext& ctx) const override
+#if (defined(__GNUC__) || defined(__clang__))
+      __attribute__((no_sanitize("vptr")))
+#endif
+      ;
 
   /// @}
 
-- 
GitLab