Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

Liquid simulation on MacOS

Open neilwth opened this issue 11 months ago • 2 comments

After pulling the latest src with this PR, the float32/64 issue resolved, but I still got the following issues with backend gs.metal:

[Genesis] [11:36:48] [WARNING] pbs sampler failed. Falling back to random sampler.

and

[Genesis] [11:36:58] [INFO] Compiling simulation kernels... RHI Error: cannot create compute pipeline state: Compiler encountered an internal error (code=3) RHI Error: cannot create compute pipeline state: Compiler encountered an internal error (code=3) Assertion failed: (p != nullptr), function bind_pipeline, file metal_device.mm, line 382.

Still, the script works fine but slowly with cpu, and simulations without liquid are OK for both cpu and metal.

neilwth avatar Dec 20 '24 03:12 neilwth

Met same problem.

jrryzh avatar Dec 20 '24 11:12 jrryzh

same issue here. Works with cpu but not with gs.metal backend

arielhgl avatar Dec 22 '24 06:12 arielhgl

Still, the script works fine but slowly with cpu, and simulations without liquid are OK for both cpu and metal.

Are you saying you SAW sth / the Viewer on the Mac? Guess no.

ai-bits avatar Jan 03 '25 15:01 ai-bits

I commented out this line and it worked.

Genesis/genesis/engine/solvers/rigid/constraint_solver_decomp.py line 840: self.efc_force[i_c, i_b] = -self.efc_D[i_c, i_b] * self.Jaref[i_c, i_b] * self.active[i_c, i_b]

hckang-dev avatar Jan 15 '25 08:01 hckang-dev

+1, same issue here.

RoryMB avatar Jan 16 '25 04:01 RoryMB

This issue has been fixed on main branch.

duburcqa avatar Mar 22 '25 22:03 duburcqa