UWB-Biocomputing / Graphitti

A project to facilitate construction of high-performance simulations of graph-structured systems.
https://uwb-biocomputing.github.io/Graphitti/
Apache License 2.0
7 stars 14 forks source link

enums should be replaced with C++ enum class #732

Open stiber opened 5 days ago

stiber commented 5 days ago

An example of this currently implemented with C enum is:

https://github.com/UWB-Biocomputing/Graphitti/blob/b507ae9a4ccc6377c36fde9413af726366734b07/Simulator/Edges/Neuro/AllNeuroEdges.h#L42-L48

See https://en.cppreference.com/w/cpp/language/enum for more information about this language feature.

stiber commented 4 days ago

Actually, this needs to copy to the GPU and work in a GPU-side switch statement. It may or may not work this way, depending on whether we can rely on the "data footprint" on the GPU matching up well with the CPU implementation of this language feature.