Structure: csrc/ -- .cu sources + build.py registry astrai/extension/ -- compiled .so + __init__.py (import dispatcher) setup.py -- CUDAExtension from csrc/build.py REGISTRY Control: CSRC_KERNELS=true|false env var at install time. Fallback: astrai.extension.available dict for runtime detection.
3 lines
100 B
Python
3 lines
100 B
Python
# Source directory for CUDA kernels — build-time only.
|
|
# Compiled .so files live in astrAI/_ext/.
|