Skip to content

Commit 60bdce9

Browse files
JackAKirknormallytangent
authored andcommitted
[BLAS][DFT][SPARSE][TESTS] Remove .template from get_host_access to fix build (#534)
Signed-off-by: JackAKirk <[email protected]>
1 parent f7b15a1 commit 60bdce9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+89
-89
lines changed

tests/unit_tests/blas/batch/axpy_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, fp
150150

151151
// Compare the results of reference implementation and DPC++ implementation.
152152

153-
auto y_accessor = y_buffer.template get_host_access(read_only);
153+
auto y_accessor = y_buffer.get_host_access(read_only);
154154
bool good = true;
155155
for (i = 0; i < batch_size; i++) {
156156
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,

tests/unit_tests/blas/batch/copy_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, in
147147

148148
// Compare the results of reference implementation and DPC++ implementation.
149149

150-
auto y_accessor = y_buffer.template get_host_access(read_only);
150+
auto y_accessor = y_buffer.get_host_access(read_only);
151151
bool good = true;
152152
for (i = 0; i < batch_size; i++) {
153153
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,

tests/unit_tests/blas/batch/dgmm_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int test(device *dev, oneapi::mkl::layout layout, oneapi::mkl::side left_right,
166166

167167
// Compare the results of reference implementation and DPC++ implementation.
168168

169-
auto C_accessor = C_buffer.template get_host_access(read_only);
169+
auto C_accessor = C_buffer.get_host_access(read_only);
170170
bool good = true;
171171
for (i = 0; i < batch_size; i++) {
172172
good = good &&

tests/unit_tests/blas/batch/gemm_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
223223
for (size_t i = 0; i < C_ref.size(); ++i) {
224224
C_cast_ref[i] = C_ref[i];
225225
}
226-
auto C_accessor = C_buffer.template get_host_access(read_only);
226+
auto C_accessor = C_buffer.get_host_access(read_only);
227227
bool good = check_almost_equal_matrix(C_accessor, C_cast_ref, oneapi::mkl::layout::col_major,
228228
stride_c * batch_size, 1, stride_c * batch_size,
229229
error_mag, std::cout);

tests/unit_tests/blas/batch/gemv_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t incx, int64_t incy, in
181181

182182
// Compare the results of reference implementation and DPC++ implementation.
183183

184-
auto y_accessor = y_buffer.template get_host_access(read_only);
184+
auto y_accessor = y_buffer.get_host_access(read_only);
185185
bool good = true;
186186
for (i = 0; i < batch_size; i++) {
187187
good = good && check_equal_vector(y_accessor.get_pointer() + i * stride_y,

tests/unit_tests/blas/batch/imatcopy_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
163163

164164
// Compare the results of reference implementation and DPC++ implementation.
165165

166-
auto AB_accessor = AB_buffer.template get_host_access(read_only);
166+
auto AB_accessor = AB_buffer.get_host_access(read_only);
167167
bool good = check_equal_matrix(AB_accessor, AB_ref, oneapi::mkl::layout::col_major,
168168
stride * batch_size, 1, stride * batch_size, 10, std::cout);
169169

tests/unit_tests/blas/batch/omatadd_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
179179

180180
// Compare the results of reference implementation and DPC++ implementation.
181181

182-
auto C_accessor = C_buffer.template get_host_access(read_only);
182+
auto C_accessor = C_buffer.get_host_access(read_only);
183183
bool good = check_equal_matrix(C_accessor, C_ref, oneapi::mkl::layout::col_major,
184184
stride_c * batch_size, 1, stride_c * batch_size, 10, std::cout);
185185

tests/unit_tests/blas/batch/omatcopy_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
166166

167167
// Compare the results of reference implementation and DPC++ implementation.
168168

169-
auto B_accessor = B_buffer.template get_host_access(read_only);
169+
auto B_accessor = B_buffer.get_host_access(read_only);
170170
bool good = check_equal_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major,
171171
stride_b * batch_size, 1, stride_b * batch_size, 10, std::cout);
172172

tests/unit_tests/blas/batch/syrk_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int test(device *dev, oneapi::mkl::layout layout, int64_t batch_size) {
185185

186186
// Compare the results of reference implementation and DPC++ implementation.
187187

188-
auto C_accessor = C_buffer.template get_host_access(read_only);
188+
auto C_accessor = C_buffer.get_host_access(read_only);
189189
bool good =
190190
check_equal_matrix(C_accessor, C_ref, oneapi::mkl::layout::col_major, stride_c * batch_size,
191191
1, stride_c * batch_size, 10 * k, std::cout);

tests/unit_tests/blas/batch/trsm_batch_stride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int test(device *dev, oneapi::mkl::layout layout) {
192192
}
193193

194194
// Compare the results of reference implementation and DPC++ implementation.
195-
auto B_accessor = B_buffer.template get_host_access(read_only);
195+
auto B_accessor = B_buffer.get_host_access(read_only);
196196
bool good =
197197
check_equal_trsm_matrix(B_accessor, B_ref, oneapi::mkl::layout::col_major, total_size_b, 1,
198198
total_size_b, 10 * std::max(m, n), std::cout);

0 commit comments

Comments
 (0)