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;