Revert "[Kernel] Add PDL support for DeepGEMM kernel" (#45999)

This commit is contained in:
Micah Williamson
2026-06-17 22:59:48 -07:00
committed by GitHub
parent 554352a311
commit e945169207
3 changed files with 20 additions and 62 deletions
-19
View File
@@ -177,22 +177,6 @@ def _import_deep_gemm():
return None
def _apply_pdl(mod, enable: bool = True) -> None:
mod_name = getattr(mod, "__name__", str(mod))
try:
set_pdl_fn = getattr(mod, "set_pdl", None)
if set_pdl_fn is None:
return
set_pdl_fn(enable)
logger.info_once(
"DeepGEMM PDL %s on %s.",
"enabled" if enable else "disabled",
mod_name,
)
except Exception as e: # noqa: BLE001
logger.warning_once("Failed to set DeepGEMM PDL on %s: %s", mod_name, e)
def _lazy_init() -> None:
"""Import deep_gemm and resolve symbols on first use."""
global _cublaslt_gemm_nt_impl
@@ -235,9 +219,6 @@ def _lazy_init() -> None:
if _dg is None:
return
# Enable PDL for DeepGEMM on architectures that support it (SM90+).
if current_platform.is_arch_support_pdl():
_apply_pdl(_dg, True)
_cublaslt_gemm_nt_impl = getattr(_dg, "cublaslt_gemm_nt", None)
_fp8_gemm_nt_impl = getattr(_dg, "fp8_gemm_nt", None)
_fp8_einsum_impl = getattr(_dg, "fp8_einsum", None)