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
9 changes: 0 additions & 9 deletions cuda_core/cuda/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@

import importlib

# The _resource_handles module exports a PyCapsule dispatch table that other
# extension modules access via PyCapsule_Import. We import it here to ensure
# it's loaded before other modules try to use it.
#
# We use importlib.import_module with the full path to avoid triggering
# circular import issues that can occur with relative imports during
# package initialization.
_resource_handles = importlib.import_module("cuda.core._resource_handles")

subdir = f"cu{cuda_major}"
try:
versioned_mod = importlib.import_module(f".{subdir}", __package__)
Expand Down
Loading