Skip to content

Commit

Permalink
Fix subgroupAdd and subgroupMul execution tests (#4013)
Browse files Browse the repository at this point in the history
* Use kDataSentinel instead of 999
  • Loading branch information
alan-baker authored Oct 28, 2024
1 parent d473d09 commit 45757be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
import { FP } from '../../../../../util/floating_point.js';

import {
kDataSentinel,
kNumCases,
kStride,
kWGSizes,
Expand Down Expand Up @@ -278,7 +279,7 @@ function checkPredicatedAddition(
}
}
} else {
expected = 999;
expected = kDataSentinel;
}
if (expected !== output[i]) {
return new Error(`Invocation ${i}: incorrect result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
import { FP } from '../../../../../util/floating_point.js';

import {
kDataSentinel,
kNumCases,
kStride,
kWGSizes,
Expand Down Expand Up @@ -301,7 +302,7 @@ function checkPredicatedMultiplication(
}
}
} else {
expected = 999;
expected = kDataSentinel;
}
if (expected !== output[i]) {
return new Error(`Invocation ${i}: incorrect result
Expand Down

0 comments on commit 45757be

Please sign in to comment.