Function call does not work on CPU sims error - Niagara

When compiling my Niagara sim, I get the error: “Function call does not work on CPU sims” on my scratch pad even though my simulation is set to GPUCompute Sim.

Is this a bug?

I’m using UE5.2.

The functions it complains about are Exec to Index and Set Render Target Value.

Looks like I was putting my module inside the Emitter Spawn section, rather than my simulation stage section. Whoops