diff --git a/clients/include/utility.h b/clients/include/utility.h index 40259cebe..ed355c5ad 100644 --- a/clients/include/utility.h +++ b/clients/include/utility.h @@ -142,10 +142,10 @@ template static constexpr bool is_complex = false; template <> -constexpr bool is_complex = true; +HIPBLAS_CLANG_STATIC constexpr bool is_complex = true; template <> -constexpr bool is_complex = true; +HIPBLAS_CLANG_STATIC constexpr bool is_complex = true; // Get base types from complex types. template diff --git a/library/include/hipblas.h b/library/include/hipblas.h index 16e10452f..c83efaea6 100644 --- a/library/include/hipblas.h +++ b/library/include/hipblas.h @@ -18,6 +18,12 @@ #include #include +#if __clang__ +#define HIPBLAS_CLANG_STATIC static +#else +#define HIPBLAS_CLANG_STATIC +#endif + typedef void* hipblasHandle_t; typedef uint16_t hipblasHalf;