Skip to content

Commit

Permalink
[SYCL][E2E] Fix Wmissing-template-arg-list-after-template-kw warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tianqingw authored and sys-ce-bb committed Jul 2, 2024
1 parent 15eb8cf commit ad91d32
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/accessor_global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool test(queue Q, uint32_t LocalRange, uint32_t GlobalRange) {
T *Ptr = TmpAcc.template get_multi_ptr<access::decorated::yes>()
.get();
simd<T, VL> Values = block_load<T, VL>(Ptr + (GID + LID) * VL);
Values.template copy_to(Out + (GID + LID) * VL);
Values.template copy_to<sizeof(T)>(Out + (GID + LID) * VL);
}
} // end for (int LID = 0; LID < LocalRange; LID++)
} // end if (LID == 0)
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/private_memory/private_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ESIMD_NOINLINE bool test(queue Q, int PrivateArrayLen) {
for (int I = 0; I < ArrayLen; I++) {
simd<int, 1> IV(static_cast<int>(Id) * PrivateArrayLen + I);
simd<T, 1> TV = IV;
TV.template copy_to(PrivateArray + I);
TV.template copy_to<sizeof(T)>(PrivateArray + I);
}

simd<T, PrivateArrayLenConst> BigVec(PrivateArray);
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/regression/big_const_initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(int argc, char **argv) {
std::cout << "*** EXCEPTION caught: " << e.what() << "\n";
return 1;
}
auto acc = r.template get_host_access(sycl::read_only);
auto acc = r.get_host_access(sycl::read_only);
for (int i = 0; i < N_PRINT; i++) {
std::cout << acc[i] << " ";
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/ESIMD/regression/iselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int test(sycl::queue queue) {

esimd::simd<int, 8> data = input_load_vec.iselect(offset);
data += 3;
input_load_vec.template iupdate(offset, data,
input_load_vec.iupdate(offset, data,
esimd::simd_mask<8>(1));
input_load_vec.copy_to(out_ptr);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ bool testLocalAccSLM(queue Q, uint32_t Groups, PropertiesT Properties) {
Vals = gather<T, N>(LocalAcc, ByteOffsets, PropertiesT{});
} else {
if (GlobalID % GroupSize)
Vals.template copy_from(LocalAcc, LocalElemOffset);
Vals.template copy_from<decltype(LocalAcc), ChunkSize>(LocalAcc, LocalElemOffset);
else
Vals = gather<T, N>(LocalAcc, ByteOffsets);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void RunSortOVerGroup(sycl::queue &Q, const std::vector<T> &DataToSort,
#endif

#if VERSION == 1
LocalMemorySizeRadix = RadixSorterT::template memory_required(
LocalMemorySizeRadix = RadixSorterT::memory_required(
sycl::memory_scope::sub_group, sycl::range<1>{ReqSubGroupSize});
#else
LocalMemorySizeRadix = RadixSorterT::memory_required(
Expand All @@ -310,7 +310,7 @@ void RunSortOVerGroup(sycl::queue &Q, const std::vector<T> &DataToSort,
#endif

#if VERSION == 1
LocalMemorySizeRadix = RadixSorterT::template memory_required(
LocalMemorySizeRadix = RadixSorterT::memory_required(
sycl::memory_scope::work_group, sycl::range<1>{NumOfElements});
#else
LocalMemorySizeRadix = RadixSorterT::memory_required(
Expand Down

0 comments on commit ad91d32

Please sign in to comment.