// Copyright Advanced Micro Devices, Inc., or its affiliates. // SPDX-License-Identifier: MIT #ifndef ROCBLAS_ASAN_HELPERS_HPP #define ROCBLAS_ASAN_HELPERS_HPP #if defined(__SANITIZE_ADDRESS__) || (defined(__has_feature) && __has_feature(address_sanitizer)) inline constexpr bool rocblas_enable_asan = true; #else inline constexpr bool rocblas_enable_asan = false; #endif namespace rocblas { template inline constexpr auto conditional_v = B ? IfTrue : IfFalse; } // namespace rocblas #endif