spcl / spcl/dace

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

Open
#1,737 2 comments 0 reactions 1 assignee Claimed by @pratyai View on GitHub
fortran frontend
Dominant language
Python
Stars
593
Forks
163
Avg merge
2d 23h
Merged PRs (30d)
60

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.