Skip to content

Unable to register a customized GPU operator with CuPy #823

@leonlee-1

Description

@leonlee-1

Hi BrainPy Team,

A customized GPU operator of CuPy must be registered by calling bm.XLACustomOp(gpu_kernel=kernel) as described in the documentation (https://brainpy.readthedocs.io/tutorial_advanced/operator_custom_with_cupy.html), but this line of code causes AttributeError: module 'brainpy.math' has no attribute 'XLACustomOp'.

I've tried installing brainpy and also BrainX with cuda12 and cuda13 by following the instructions such as "pip install brainpy[cuda12]", but nothing worked. It seems that the cause is XLACustomOp doesn't exist any more. Please kindly shed some light on the resolutions.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions