Skip to content

Commit

Permalink
Merge branch 'master' into complex-inshpect
Browse files Browse the repository at this point in the history
  • Loading branch information
rasolca authored Dec 18, 2024
2 parents acf7afe + 0bd434c commit 7f59c08
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/lapack/gpu/larft.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//

#include <complex>
#include <type_traits>

#include <whip.hpp>

Expand Down Expand Up @@ -48,8 +49,20 @@ __global__ void fix_tau(const unsigned k, const T* tau, unsigned inctau, T* t, u
t_ij = {};
else if (i == j)
t_ij = tau_j;
else
t_ij = -tau_j * t_ij;
else {
#if defined(DLAF_WITH_HIP)
if constexpr (std::is_same_v<T, hipFloatComplex>) {
t_ij = hipCmulf(-tau_j, t_ij);
}
else if constexpr (std::is_same_v<T, hipDoubleComplex>) {
t_ij = hipCmul(-tau_j, t_ij);
}
else
#endif
{
t_ij = -tau_j * t_ij;
}
}
}
}

Expand Down

0 comments on commit 7f59c08

Please sign in to comment.