Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Update reduction test to avoid risk of timeout on ACC #414

Merged
merged 1 commit into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions SYCL/Reduction/reduction_range_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ int test(queue &Q, T Identity, T Init, BinaryOperation BOp,
return 0;
}

// TODO: Perhaps, this is a _temporary_ fix for CI. The test may run
// for too long when the range is big. That is especially bad on ACC.
if (Range.size() > 65536) {
std::cout << " SKIPPED due to risk of timeout in CI" << std::endl;
return 0;
}

buffer<T, Dims> InBuf(Range);
buffer<T, 1> OutBuf(1);

Expand Down Expand Up @@ -94,6 +101,13 @@ int testUSM(queue &Q, T Identity, T Init, BinaryOperation BOp,
return 0;
}

// TODO: Perhaps, this is a _temporary_ fix for CI. The test may run
// for too long when the range is big. That is especially bad on ACC.
if (Range.size() > 65536) {
std::cout << " SKIPPED due to risk of timeout in CI" << std::endl;
return 0;
}

T *ReduVarPtr = (T *)malloc(sizeof(T), Dev, Q.get_context(), AllocType);
if (ReduVarPtr == nullptr) {
std::cout << " SKIPPED due to unrelated reason: alloc returned nullptr"
Expand Down