Skip to content

Commit

Permalink
Silence unused variable warnings in lacpy.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Mar 7, 2024
1 parent 1f47ef8 commit ba8bff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lapack/gpu/lacpy.cu
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <whip.hpp>

#include <dlaf/common/assert.h>
#include <dlaf/gpu/assert.cu.h>
#include <dlaf/gpu/blas/api.h>
#include <dlaf/lapack/gpu/lacpy.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ba8bff3

Please sign in to comment.