Skip to content

Build the kernels with cunumpy's KernelPackage - #3

Merged
max-models merged 3 commits into
develfrom
kernel-package
Oct 27, 2026
Merged

max-models merged 3 commits into
develfrom
kernel-package

Conversation

@max-models

Copy link
Copy Markdown
Owner

Builds the kernels with cunumpy's KernelPackage (max-models/cunumpy#118): mpifield.kernels.KERNEL_PACKAGE in kernels/__init__.py replaces kernels/_build.py, kernels/_metal.py and kernels/compile.py. Every kernel folder calls KERNEL_PACKAGE.from_folder(__name__), the Metal versions KERNEL_PACKAGE.metal_kernel(...). The build cache is still MPIFIELD_KERNEL_CACHE.

The catalog no longer exports BLOCK_SIZE, SHARED_MEMORY_PER_BLOCK or shared_memory_fits; Field uses xp.cuda.shared_memory_fits. This is step 1 of the mpifield plan. Tests: 291 passed, Metal 17 passed, 49 passed on 2 MPI ranks.

Needs cunumpy#118 on devel before CI can pass.

@max-models
max-models merged commit 80094b2 into devel Oct 27, 2026
16 checks passed
@max-models
max-models deleted the kernel-package branch October 27, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant