Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pratyai opened this issue Nov 7, 2024 · 2 comments
Assignees

Comments

@pratyai
Copy link
Collaborator

pratyai commented Nov 7, 2024

From #1736 (review)

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
Copy link
Collaborator

tbennun commented Nov 7, 2024

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

@pratyai pratyai changed the title Make it a config option whether the frontend parses bools as bools or ints Make it a config option whether the Fortran frontend parses bools as bools or ints Nov 7, 2024
@ghost
Copy link

ghost commented Nov 8, 2024

can i work on this if it is not assigned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants