refactor: move compiled kernel .so files into extension/lib

- CUDAExtension module names changed from astrai.extension.<name> to astrai.extension.lib.<name>
- Compiled .so files now land in astrai/extension/lib/ instead of alongside Python source
- loader.py imports from .lib.<name> subpackage
- Add astrai/extension/lib/__init__.py to make lib a proper package
- Separates compiled artifacts from Python source for cleaner directory structure
This commit is contained in:
2026-07-31 15:36:32 +08:00
parent 3e67b4f88d
commit 9f83d982ec
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ _modules: dict[str, object] = {}
for _name in KERNEL_NAMES:
try:
_mod = importlib.import_module(f".{_name}", package=__package__)
_mod = importlib.import_module(f".lib.{_name}", package=__package__)
_available[_name] = True
_modules[_name] = _mod
except ImportError: