brainpy.profile package

The setting of the overall framework by profile.py API.

set([jit, device, numerical_method, dt, …])

run_on_cpu()

Check whether the device is “CPU”.

run_on_gpu()

Check whether the device is “GPU”.

set_device(jit[, device])

Set the backend and the device to deploy the models.

get_device()

Get the device name.

set_dt(dt)

Set the numerical integrator precision.

get_dt()

Get the numerical integrator precision.

set_numerical_method(method)

Set the default numerical integrator method for differential equations.

get_numerical_method()

Get the default numerical integrator method.

set_numba_profile(**kwargs)

Set the compilation options of Numba JIT function.

get_numba_profile()

Get the compilation setting of numba JIT function.

set_backend(backend)

Set the running backend.

get_backend()

Get the used backend of BrainPy.

get_num_thread_gpu()

is_jit()

Check whether the backend is numba.

is_merge_integrators()

is_merge_steps()

is_substitute_equation()

show_code_scope()

show_format_code()