mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
DBM: fixed potential overflow in FLOPS calculation
This commit is contained in:
parent
8f7c1fd443
commit
459cfc33f0
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ static void multiply_packs(const bool transa, const bool transb,
|
|||
|
||||
// Count flops.
|
||||
dbm_library_counter_increment(m, n, k);
|
||||
const int task_flops = 2 * m * n * k;
|
||||
const int64_t task_flops = 2LL * m * n * k;
|
||||
flop_sum += task_flops;
|
||||
if (task_flops == 0) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue