|
1 | 1 | from illico.asymptotic_wilcoxon import asymptotic_wilcoxon |
2 | 2 |
|
| 3 | +# Import kernel modules to trigger decorator registration |
| 4 | +# These imports must come after the registry definitions above |
| 5 | +from illico.ovo import ( # noqa: E402, F401 |
| 6 | + csc_ovo_mwu_kernel_over_contiguous_col_chunk, |
| 7 | + csr_ovo_mwu_kernel_over_contiguous_col_chunk, |
| 8 | + dense_ovo_mwu_kernel_over_contiguous_col_chunk, |
| 9 | +) |
| 10 | +from illico.ovr import ( # noqa: E402, F401 |
| 11 | + csc_ovr_mwu_kernel_over_contiguous_col_chunk, |
| 12 | + csr_ovr_mwu_kernel_over_contiguous_col_chunk, |
| 13 | + dense_ovr_mwu_kernel_over_contiguous_col_chunk, |
| 14 | +) |
| 15 | + |
| 16 | +# Now register the Rust kernels |
| 17 | +from illico.rust_backend import ( # noqa: E402, F401 |
| 18 | + csc_ovo_mwu_kernel_over_contiguous_col_chunk_rust, |
| 19 | + csc_ovr_mwu_kernel_over_contiguous_col_chunk_rust, |
| 20 | + csr_ovo_mwu_kernel_over_contiguous_col_chunk_rust, |
| 21 | + csr_ovr_mwu_kernel_over_contiguous_col_chunk_rust, |
| 22 | + dense_ovo_over_contiguous_col_chunk_rust, |
| 23 | + dense_ovr_over_contiguous_col_chunk_rust, |
| 24 | +) |
| 25 | +from illico.utils.registry import ( |
| 26 | + KernelDataFormat, |
| 27 | + Test, |
| 28 | + rs_dispatcher_registry, |
| 29 | +) |
| 30 | + |
| 31 | +rs_dispatcher_registry.register(Test.OVO, KernelDataFormat.DENSE)(dense_ovo_over_contiguous_col_chunk_rust) |
| 32 | +rs_dispatcher_registry.register(Test.OVR, KernelDataFormat.DENSE)(dense_ovr_over_contiguous_col_chunk_rust) |
| 33 | +rs_dispatcher_registry.register(Test.OVO, KernelDataFormat.CSC)(csc_ovo_mwu_kernel_over_contiguous_col_chunk_rust) |
| 34 | +rs_dispatcher_registry.register(Test.OVO, KernelDataFormat.CSR)(csr_ovo_mwu_kernel_over_contiguous_col_chunk_rust) |
| 35 | +rs_dispatcher_registry.register(Test.OVR, KernelDataFormat.CSC)(csc_ovr_mwu_kernel_over_contiguous_col_chunk_rust) |
| 36 | +rs_dispatcher_registry.register(Test.OVR, KernelDataFormat.CSR)(csr_ovr_mwu_kernel_over_contiguous_col_chunk_rust) |
| 37 | + |
| 38 | + |
3 | 39 | __all__ = ["asymptotic_wilcoxon"] |
0 commit comments