Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ at::Tensor f8f8bf16_rowwise_batched_impl(
size_t workspace_size = Gemm::get_workspace_size(arguments);

// Allocate workspace memory
cutlass::device_memory::allocation<uint8_t> workspace(workspace_size);
at::Tensor workspace =
at::empty(workspace_size, XQ.options().dtype(at::kByte));

// Check the problem size is supported or not
cutlass::Status status = gemm.can_implement(arguments);
Expand All @@ -283,7 +284,7 @@ at::Tensor f8f8bf16_rowwise_batched_impl(
}

// Initialize CUTLASS kernel with arguments and workspace pointer
status = gemm.initialize(arguments, workspace.get());
status = gemm.initialize(arguments, workspace.data_ptr());
if (status != cutlass::Status::kSuccess) {
throw std::runtime_error("cutlass cannot initialize");
}
Expand Down
Loading