brainevent.load_cuda_file

Contents

brainevent.load_cuda_file#

brainevent.load_cuda_file(filepath, functions=None, *, name=None, **kwargs)[source]#

Compile a single .cu file and load the resulting module.

Parameters:
  • filepath (str | Path) – Path to the .cu file.

  • functions (dict[str, list[str]] | None) – Function name → arg_spec mapping (same as load_cuda_inline). If None, discovered from // @BE annotations.

  • name (str | None) – Module name. Defaults to the file stem.

  • **kwargs – Forwarded to load_cuda_inline.

Return type:

CompiledModule