Skip to content

Commit

Permalink
Fix runtime error with complex double and Intel compiler 18.2.199
Browse files Browse the repository at this point in the history
  • Loading branch information
vqd8a committed Nov 5, 2018
1 parent ec3142e commit 8dcd972
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/batched/KokkosBatched_InverseLU_Serial_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace KokkosBatched {
auto B = Kokkos::View<ScalarType**, Kokkos::LayoutLeft, typename WViewType::memory_space, Kokkos::MemoryTraits<Kokkos::Unmanaged> >(W.data(), A.extent(0), A.extent(1));

const ScalarType one(1.0);

#if defined(KOKKOS_ENABLE_PRAGMA_UNROLL)
#pragma unroll
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/batched/KokkosBatched_SolveLU_Serial_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace KokkosBatched {
SerialTrsm<Side::Left,Uplo::Lower,Trans::NoTranspose,Diag::Unit,Algo::Trsm::Unblocked>::invoke(one, A, B);
//Second, compute X by solving the system U*X = Y for X
SerialTrsm<Side::Left,Uplo::Upper,Trans::NoTranspose,Diag::NonUnit,Algo::Trsm::Unblocked>::invoke(one, A, B);

return 0;
}

Expand Down
13 changes: 8 additions & 5 deletions src/batched/KokkosBatched_Trsm_Serial_Internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ namespace KokkosBatched {
const int iend = p, jend = n;

const ValueType *__restrict__ a01 = A+p*as1;
/**/ ValueType *__restrict__ b1t = B+p*bs0;
ValueType *__restrict__ b1t = B+p*bs0;

if (!use_unit_diag) {
const ValueType alpha11 = A[p*as0+p*as1];

Expand All @@ -191,13 +191,16 @@ namespace KokkosBatched {
for (int j=0;j<n;++j)
b1t[j*bs1] = b1t[j*bs1] / alpha11;
}
for (int i=0;i<iend;++i)

if (p>0){
for (int i=0;i<iend;++i)

#if defined(KOKKOS_ENABLE_PRAGMA_UNROLL)
#pragma unroll
#endif
for (int j=0;j<jend;++j)
B0[i*bs0+j*bs1] -= a01[i*as0] * b1t[j*bs1];
for (int j=0;j<jend;++j)
B0[i*bs0+j*bs1] -= a01[i*as0] * b1t[j*bs1];
}
}
}
return 0;
Expand Down

0 comments on commit 8dcd972

Please sign in to comment.