Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ FetchContent_Declare(
GIT_TAG 5a0b7a8b7024175f223f4a47535650f317bcbbf3
GIT_SHALLOW OFF
)
FetchContent_MakeAvailable(repo-cutlass-sycl)

set(FETCHCONTENT_MAKEAVAILABLE_SERIAL FALSE)
FetchContent_MakeAvailable(repo-cutlass-sycl)
file(COPY ${repo-cutlass-sycl_SOURCE_DIR}/cmake/onemkl.cmake
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(FETCHCONTENT_MAKEAVAILABLE_SERIAL TRUE)
FetchContent_MakeAvailable(repo-cutlass-sycl)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include
Expand Down
2 changes: 1 addition & 1 deletion include/sgl_kernel_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ torch::Tensor fp8_scaled_mm(
const torch::Tensor& mat_b,
const torch::Tensor& scales_a,
const torch::Tensor& scales_b,
const torch::Dtype& out_dtype,
const at::ScalarType out_dtype,
const c10::optional<torch::Tensor>& bias);
torch::Tensor fp8_blockwise_scaled_mm(
const torch::Tensor& mat_a,
Expand Down
6 changes: 3 additions & 3 deletions python/sgl_kernel/gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ def _bmm_fp8_internal(
A_scale: torch.Tensor,
B_scale: torch.Tensor,
) -> None:
cublas_handle = torch.cuda.current_blas_handle()
# cublas_handle = torch.cuda.current_blas_handle()
torch.ops.sgl_kernel.bmm_fp8.default(
A,
B,
D,
A_scale,
B_scale,
workspace_buffer,
cublas_handle,
get_cuda_stream(),
0,
0,
)


Expand Down
Loading