FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
105 stars 21 forks source link

Complex Number Support #822

Open ptheywood opened 2 years ago

ptheywood commented 2 years ago

Some scientific domains make heavy use of complex numbers in simualtions.

Adding complex number support to FLAME GPU might be required to potentially increase adoption.

CUDA support for std::complex is partial / spotty, it might be better from CUDA 11.7 w/ --std=c++20 but we can't rely on it being available at this point.

Thrust ships thrust::complex, so adopting use of that might be the simplest option if this is required.

Robadob commented 2 years ago

No reason we can't support it, just may need to tweak some of the templates to fully support it (I think we dropped bool support for a similar reason).