From ba8bff33c9498ce7d312e9e830526d896e0d6053 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Thu, 7 Mar 2024 16:25:05 +0100 Subject: [PATCH] Silence unused variable warnings in lacpy.cu --- src/lapack/gpu/lacpy.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lapack/gpu/lacpy.cu b/src/lapack/gpu/lacpy.cu index 9ab2b5f5e4..5bd3b5bd9e 100644 --- a/src/lapack/gpu/lacpy.cu +++ b/src/lapack/gpu/lacpy.cu @@ -10,6 +10,7 @@ #include +#include #include #include #include @@ -174,6 +175,8 @@ static whip::memcpy_kind get_lacpy_memcpy_kind(const void* src, const void* dst) "Attempting to do a HIP lacpy with unsupported source and destination memory type", src_type, dst_type); } +#else + silenceUnusedWarningFor(src, dst); #endif return whip::memcpy_default;