Skip to content

Commit

Permalink
Init d and ref_d with different values
Browse files Browse the repository at this point in the history
  • Loading branch information
aacostadiaz committed May 20, 2024
1 parent a46cff7 commit 1d07916
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/sycl/common/example_runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ struct ExampleRunner {
std::vector<ElementA> a(K * M * L);
std::vector<ElementB> b(K * N * L);
std::vector<ElementC> c(M * N * L);
std::vector<ElementC> d(M * N * L, ElementC{0});
std::vector<ElementC> d(M * N * L, ElementC{-1});
std::vector<ElementC> ref_d(M * N * L, ElementC{-2});

fill_matrix(a);
fill_matrix(b);
Expand All @@ -234,7 +235,7 @@ struct ExampleRunner {
block_B.copy_from_host(b.data(), b.size());
block_C.copy_from_host(c.data(), c.size());
block_D.copy_from_host(d.data(), d.size());
block_ref_D.copy_from_host(d.data(), d.size());
block_ref_D.copy_from_host(ref_d.data(), d.size());
}

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

0 comments on commit 1d07916

Please sign in to comment.