Runtime Configuration¶
cuRobo runtime configuration flags.
These module-level flags control runtime behavior. Set them in Python before creating any cuRobo objects:
import curobo._src.runtime as runtime
runtime.cuda_graphs = False # disable CUDA graph capture
runtime.torch_compile = True # enable torch.compile
runtime.kernel_launch_sm_count = 32 # select small-GPU launch policies
- cuda_graphs: bool = True¶
Enable CUDA graph capture for solvers. Significantly improves throughput at the cost of a one-time warm-up overhead.
- skip_checks: bool = True¶
Skip repeat runtime validation on performance-sensitive paths. Enable only when tensor references and shapes remain stable between calls.
- cuda_graph_reset: bool = False¶
Enable CUDA graph reset when tensor memory references change. Requires CUDA 12.0+.
- kernel_launch_sm_count: int | None = None¶
Override the SM count used to select kernel launch policies. This does not partition the GPU or restrict kernels to this number of physical SMs. Set it before constructing cuRobo objects or capturing CUDA graphs.
- resolve_kernel_launch_sm_count(
- actual_sm_count,
Return the SM count to use for launch-policy selection.
- use_small_gpu_launch_policy(
- actual_sm_count,
Return whether kernels should use the small-GPU launch policy.
- cache_dir: str = '/home/runner/.cache/curobo'¶
Directory for cuRobo outputs (example results, saved configs, etc.). Defaults to
~/.cache/curobo.
Inverse dynamics in motion planning¶
MotionPlannerCfg.create(enable_inverse_dynamics=False) disables inverse-dynamics
computation and effort constraints throughout IK, path search, trajectory optimization,
dense validation, and time optimization. Collision checking and joint position,
velocity, acceleration, and jerk limits remain active. enable_timeopt remains
independent and defaults to true. The inverse-dynamics option defaults to true,
preserving existing per-stage settings.
Standalone TrajOptSolverCfg.create and TrajectoryTimeOptCfg expose the same
option. Timeopt results return torque=None when disabled. Such plans do not
provide torque feasibility guarantees and do not require effort limits or inertials
for time optimization.
The native equivalents are MotionPlanningConfig::enable_inverse_dynamics,
TrajectoryOptimizationConfig::enable_inverse_dynamics, and
TrajectoryTimeOptConfig::enable_inverse_dynamics. Setting the planner option
false overrides every stage’s effort-check flag. Standalone native timeopt returns
a null torque pointer and does not load the rollout/dynamics manifest when disabled.
Both Python and native execution retain CUDA graph support.