From 7f52f40c5fa7803c97243f5ee6376fc8617f19c1 Mon Sep 17 00:00:00 2001 From: Marco Boneberger Date: Fri, 20 Dec 2024 14:12:06 +0100 Subject: [PATCH] fix cpu arg in cloth_on_rigid.py example --- examples/coupling/cloth_on_rigid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/coupling/cloth_on_rigid.py b/examples/coupling/cloth_on_rigid.py index cdbc347..f36dca0 100644 --- a/examples/coupling/cloth_on_rigid.py +++ b/examples/coupling/cloth_on_rigid.py @@ -12,7 +12,7 @@ def main(): args = parser.parse_args() ########################## init ########################## - gs.init(seed=0, precision="32", logging_level="debug") + gs.init(seed=0, precision="32", logging_level="debug", backend=gs.cpu if args.cpu else gs.gpu) scene = gs.Scene( sim_options=gs.options.SimOptions(