Skip to content

novaphy.has_mujoco_cuda

novaphy.has_mujoco_cuda() -> bool

Return True when the imported NovaPhy extension includes the native SolverMuJoCo CUDA backend.

The CPU implementation of novaphy.solvers.SolverMuJoCo is available in a standard build. Gate CUDA model/solver construction explicitly:

import novaphy

if not novaphy.has_mujoco_cuda():
    raise RuntimeError(
        "Rebuild with NOVAPHY_WITH_CUDA=ON "
        "and NOVAPHY_WITH_MUJOCO_CUDA=ON"
    )

See Build from Source and the MuJoCo-style Solver guide.