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

[ESIMD] Add new test cases to simd::copy_from/to test #615

Merged
merged 3 commits into from
Dec 21, 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
26 changes: 14 additions & 12 deletions SYCL/ESIMD/api/simd_copy_to_from.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@ template <typename T> bool testUSM(const std::string &Type, queue &Q) {
Pass &= testUSM<T, 15>(Type, Q);
Pass &= testUSM<T, 16>(Type, Q);

if constexpr (sizeof(T) < 8) {
Pass &= testUSM<T, 24>(Type, Q);
Pass &= testUSM<T, 25>(Type, Q);
Pass &= testUSM<T, 24>(Type, Q);
Pass &= testUSM<T, 25>(Type, Q);

Pass &= testUSM<T, 31>(Type, Q);
Pass &= testUSM<T, 32>(Type, Q);
}
Pass &= testUSM<T, 31>(Type, Q);
Pass &= testUSM<T, 32>(Type, Q);

Pass &= testUSM<T, 91>(Type, Q);
Pass &= testUSM<T, 92>(Type, Q);

return Pass;
}
Expand Down Expand Up @@ -209,13 +210,14 @@ template <typename T> bool testAcc(const std::string &Type, queue &Q) {
Pass &= testAcc<T, 15>(Type, Q);
Pass &= testAcc<T, 16>(Type, Q);

if constexpr (sizeof(T) < 8) {
Pass &= testAcc<T, 24>(Type, Q);
Pass &= testAcc<T, 25>(Type, Q);
Pass &= testAcc<T, 24>(Type, Q);
Pass &= testAcc<T, 25>(Type, Q);

Pass &= testAcc<T, 31>(Type, Q);
Pass &= testAcc<T, 32>(Type, Q);
}
Pass &= testAcc<T, 31>(Type, Q);
Pass &= testAcc<T, 32>(Type, Q);

Pass &= testAcc<T, 91>(Type, Q);
Pass &= testAcc<T, 92>(Type, Q);

return Pass;
}
Expand Down