spcl / dace

DaCe - Data Centric Parallel Programming
http://dace.is/fast
BSD 3-Clause "New" or "Revised" License
500 stars 130 forks source link

Make it a config option whether the Fortran frontend parses bools as bools or ints #1737

Open pratyai opened 3 weeks ago

pratyai commented 3 weeks ago

From https://github.com/spcl/dace/pull/1736#pullrequestreview-2418963774

can you please make it a config option whether the frontend parses bools as bools or ints (to ensure compatibility with external functions?) Please also add such a test if possible - it will need a different style of calling it too.

Currently, the Fortran frontend treats logical arrays as int arrays (i.e., 32 bit), which works just fine if we call the SDFG it from Fortran. On the other hand, C++ or numpy have 8bit representation for boolean. So, we might want to have that representation.

tbennun commented 3 weeks ago

which frontend is this referring to? The title does not specify.

ghost commented 3 weeks ago

can i work on this if it is not assigned