Skip to content

Commit 02b48fd

Browse files
committed
Init d and ref_d with different values
1 parent e57abeb commit 02b48fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/sycl/common/example_runner.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ struct ExampleRunner {
224224
std::vector<ElementA> a(K * M * L);
225225
std::vector<ElementB> b(K * N * L);
226226
std::vector<ElementC> c(M * N * L);
227-
std::vector<ElementC> d(M * N * L, ElementC{0});
227+
std::vector<ElementC> d(M * N * L, ElementC{-1});
228+
std::vector<ElementC> ref_d(M * N * L, ElementC{-2});
228229

229230
fill_matrix(a);
230231
fill_matrix(b);
@@ -234,7 +235,7 @@ struct ExampleRunner {
234235
block_B.copy_from_host(b.data(), b.size());
235236
block_C.copy_from_host(c.data(), c.size());
236237
block_D.copy_from_host(d.data(), d.size());
237-
block_ref_D.copy_from_host(d.data(), d.size());
238+
block_ref_D.copy_from_host(ref_d.data(), d.size());
238239
}
239240

240241
virtual void run(const Options& options, const cutlass::KernelHardwareInfo& hw_info) {

0 commit comments

Comments
 (0)