MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / NB_MODULE

Function NB_MODULE

python/SiteInitializer.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace mlir::python::nanobind_adaptors;
15
16NB_MODULE(_site_initialize_1, m) {
17 m.doc() = "All CUDA Tile IR related dialects (cuda_tile) and passes.";
18
19 // NB: This is a special API hook that will be automatically called during
20 // library initialization.
21 m.def("register_dialects", [](MlirDialectRegistry registry) {
22 mlirCudaTileRegisterAllDialects(registry);
23 });
24
25 // NB: This is not a special API hook and must be invoked manually by a user
26 // in Python to register the passes.
27 m.def("register_passes", []() { mlirCudaTileRegisterAllPasses(); });
28}

Callers

nothing calls this directly

Tested by

no test coverage detected