Skip to content

Commit

Permalink
SerialInverseLU: fix overflow in integer multiplication (kokkos#2410)
Browse files Browse the repository at this point in the history
Last one of a series of fixes to clean-up the CodeQL
safety issues, after that we should be all clean!

Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv authored Oct 30, 2024
1 parent 2fbd779 commit 063f0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void impl_test_batched_inverselu(const int N, const int BlkSize) {
/// randomized input testing views
AViewType a0("a0", N, BlkSize, BlkSize);
AViewType a1("a1", N, BlkSize, BlkSize);
WViewType w("w", N, BlkSize * BlkSize);
WViewType w("w", N, BlkSize * static_cast<size_t>(BlkSize));
AViewType c0("c0", N, BlkSize, BlkSize);

Kokkos::Random_XorShift64_Pool<typename DeviceType::execution_space> random(13718);
Expand Down

0 comments on commit 063f0bd

Please sign in to comment.