Skip to content
Merged
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
5 changes: 3 additions & 2 deletions deep_gemm/_C.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def slice_input_buffers(buffer):


# Memory homed in the GPU's locality domains, re-exported by `deep_gemm.locality_domain`
locality_domain = types.ModuleType('deep_gemm._C.locality_domain', "Memory homed in the GPU's locality domains")
locality_domain = types.ModuleType(f'{__name__}.locality_domain', "Memory homed in the GPU's locality domains")
locality_domain.get_num_locality_domains = _torch_ops.locality_domain_get_num_locality_domains
locality_domain.get_granularity = _torch_ops.locality_domain_get_granularity
locality_domain.is_localization_available = _torch_ops.locality_domain_is_localization_available
Expand All @@ -642,7 +642,8 @@ def slice_input_buffers(buffer):
locality_domain.get_sm_locality_domains = _torch_ops.locality_domain_get_sm_locality_domains
locality_domain.get_balanced_sm_locality_domains = _torch_ops.locality_domain_get_balanced_sm_locality_domains
locality_domain.release_mlopart = _torch_ops.locality_domain_release_mlopart
# NOTES: registered so that `from ._C.locality_domain import ...` resolves as with the former pybind submodule
# NOTES: registered so that `from ._C.locality_domain import ...` resolves as with the former pybind submodule,
# named after this module so the import also resolves when the package is vendored under another name
sys.modules[locality_domain.__name__] = locality_domain


Expand Down