Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CUDA-11.4 build issue #3422

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -10,7 +10,6 @@
#include <ATen/cuda/CUDAContext.h>
#include <cutlass/util/device_memory.h>
#include <cutlass/util/packed_stride.hpp>
#include <torch/script.h>

// clang-format off
// The fixed ordering of the headers is required for CUTLASS 3.2+
Expand Down Expand Up @@ -332,9 +331,10 @@ at::Tensor bf16bf16bf16_grouped_impl(
auto stream = at::cuda::getCurrentCUDAStream().stream();
int64_t output_offset = 0;

if (zero_start_index_M.has_value() == true) {
TORCH_CHECK(zero_start_index_M.value().dtype() == torch::kInt32);
}
// If passed, zero_start_index_M must be tensor of int32
TORCH_CHECK(
!zero_start_index_M.has_value() ||
zero_start_index_M->dtype() == at::kInt);

// Set arguments
for (int i = 0; i < problem_count; ++i) {
Expand Down
Loading