Skip to content
Merged
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
2 changes: 1 addition & 1 deletion clang/lib/DPCT/RuleInfra/MapNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,4 +2356,4 @@ const std::unordered_map<std::string, HelperFeatureEnum>


} // namespace dpct
} // namespace clang
} // namespace clang
6 changes: 5 additions & 1 deletion clang/lib/DPCT/RulesMathLib/MapNamesBlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,10 @@ void MapNamesBlas::setExplicitNamespaceMap(
MapNames::getLibraryHelperNamespace() +
"blas_gemm::experimental::matmul_desc_t::"
"attribute::epilogue_aux_pointer"},
{"CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_DATA_TYPE",
MapNames::getLibraryHelperNamespace() +
"blas_gemm::experimental::matmul_desc_t::"
"attribute::epilogue_aux_data_type"},
{"CUBLASLT_MATMUL_DESC_SM_COUNT_TARGET",
MapNames::getLibraryHelperNamespace() +
"blas_gemm::experimental::matmul_desc_t::attribute::unsupport"},
Expand Down Expand Up @@ -1708,4 +1712,4 @@ void MapNamesBlas::setExplicitNamespaceMap(
}

} // namespace dpct
} // namespace clang
} // namespace clang
3 changes: 3 additions & 0 deletions clang/runtime/dpct-rt/include/dpct/blas_gemm_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class matmul_desc_t {
epilogue,
epilogue_aux_ld,
epilogue_aux_pointer,
epilogue_aux_data_type,
a_scale_pointer,
b_scale_pointer,
d_scale_pointer,
Expand Down Expand Up @@ -186,6 +187,7 @@ class matmul_desc_t {
CASE(absmax_d_pointer)
CASE(epilogue_aux_ld)
CASE(epilogue_aux_pointer)
CASE(epilogue_aux_data_type)
default:
break;
}
Expand All @@ -200,6 +202,7 @@ class matmul_desc_t {
oneapi::mkl::transpose _trans_b = oneapi::mkl::transpose::nontrans;
oneapi::mkl::transpose _trans_c = oneapi::mkl::transpose::nontrans;
epilogue_t _epilogue = epilogue_t::nop;
library_data_t _epilogue_aux_data_type = library_data_t::real_float;
size_t _epilogue_aux_ld = 0;
void *_a_scale_pointer = nullptr;
void *_b_scale_pointer = nullptr;
Expand Down
2 changes: 2 additions & 0 deletions clang/test/dpct/cublaslt.cu
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ void foo3() {
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::epilogue;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::epilogue_aux_ld;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::epilogue_aux_pointer;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::epilogue_aux_data_type;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::unsupport;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::unsupport;
// CHECK-NEXT: d = dpct::blas_gemm::experimental::matmul_desc_t::attribute::a_scale_pointer;
Expand All @@ -218,6 +219,7 @@ void foo3() {
d = CUBLASLT_MATMUL_DESC_EPILOGUE;
d = CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_LD;
d = CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_POINTER;
d = CUBLASLT_MATMUL_DESC_EPILOGUE_AUX_DATA_TYPE;
d = CUBLASLT_MATMUL_DESC_SM_COUNT_TARGET;
d = CUBLASLT_MATMUL_DESC_FAST_ACCUM;
d = CUBLASLT_MATMUL_DESC_A_SCALE_POINTER;
Expand Down