Skip to content
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
16 changes: 7 additions & 9 deletions benchmarks/cutlass_kernel/python_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,17 @@ static auto gemm_run(const at::Tensor &A, const at::Tensor &B, at::Tensor &C,
size_t workspace_size = Gemm::get_workspace_size(arguments);
cutlass::device_memory::allocation<uint8_t> workspace(workspace_size);

{
CUTLASS_CHECK(gemm_op.can_implement(arguments));
}
{
CUTLASS_CHECK(gemm_op.initialize(arguments, workspace.get()));
}
{
CUTLASS_CHECK(gemm_op.run());
}
CUTLASS_CHECK(gemm_op.can_implement(arguments));
CUTLASS_CHECK(gemm_op.initialize(arguments, workspace.get()));
CUTLASS_CHECK(gemm_op.run());

syclcompat::wait();

} catch (std::exception &e) {
std::cerr << "Runtime error: " << e.what() << std::endl;
return -1;
} catch (...) {
std::cerr << "Unexpected error" << std::endl;
return -1;
}

Expand Down