-
Hi, Is it possible to communicate between agents using messages inside a host function? This would be helpful to minimize the latency of data transfers between the host and device if, for example, there are several function calls that alternate between the host and the device, consecutively. Also, the documentation for FLAMEGPU2 states that "Simulation performance is significantly increased in comparison with CPU alternatives". Could you kindly point me to any experiments that verify this claim? Is there a study that compares the performance between the CPU and GPU for different number of agents? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Himeshi . I will answer these separately.
|
Beta Was this translation helpful? Give feedback.
Hi @Himeshi . I will answer these separately.
It is not possible for agents to read message on the host. Host functions are not designed for agent behaviour but rather for serial processes that may be required in between agent behaviour on the device. The host API does allow things like creation of agents and reading agent state but it is recommended to keep behaviour within device functions (as much as possible) to avoid the overhead of host to device communication. Another reason for this is that at some stage we plan on introducing a CPU back-end for FLAME as part of this the choice between device and host execution would be abstracted from users in line with our core design principl…