Skip to content

(Closes #2612) add support for length and precision attributes in character type#3377

Merged
sergisiso merged 37 commits intomasterfrom
2612_add_len_to_scalartype
Apr 20, 2026
Merged

(Closes #2612) add support for length and precision attributes in character type#3377
sergisiso merged 37 commits intomasterfrom
2612_add_len_to_scalartype

Conversation

@arporter
Copy link
Copy Markdown
Member

No description provided.

@arporter arporter marked this pull request as draft March 16, 2026 19:37
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.96%. Comparing base (4a0546a) to head (b3553c8).
⚠️ Report is 38 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3377    +/-   ##
========================================
  Coverage   99.95%   99.96%            
========================================
  Files         389      390     +1     
  Lines       54377    54558   +181     
========================================
+ Hits        54355    54538   +183     
+ Misses         22       20     -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arporter
Copy link
Copy Markdown
Member Author

This is a little bigger than I'd have liked because, in quite a few tests, we use character as a "type that we don't support". I've kicked this can down the road a bit by switching to complex but we will also want to add support for that soon. Perhaps at that point there will be no basic type that we don't support?

@arporter arporter added enhancement PSyIR Core PSyIR functionality labels Mar 23, 2026
@arporter arporter marked this pull request as ready for review March 23, 2026 17:08
@arporter
Copy link
Copy Markdown
Member Author

Something goes very wrong in the NEMO ITs:
image
I don't have a test with len=some_intrinsic(arg)...

@arporter
Copy link
Copy Markdown
Member Author

I declare this one ready for review too. I haven't yet had a green run on the NEMOv4 integration tests but I've tried it manually and I think it's OK. We can run the ITs once Aidan's benchmarking is done.

@arporter arporter changed the title (Closes #2612) add support for length attribute in character type (Closes #2612) add support for length and precision attributes in character type Mar 31, 2026
Copy link
Copy Markdown
Collaborator

@sergisiso sergisiso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @arporter it's good to see additional symbols have a proper datatype. See mostly minor comments but the NEMOv4 integration test has also failed.

Comment thread doc/developer_guide/psyir_symbols.rst
Comment thread src/psyclone/psyir/nodes/array_reference.py
Comment thread src/psyclone/psyir/symbols/datatypes.py
Comment thread src/psyclone/psyir/symbols/datatypes.py Outdated
Comment thread src/psyclone/psyir/symbols/datatypes.py
Comment thread src/psyclone/psyir/symbols/datatypes.py Outdated
Comment thread src/psyclone/tests/psyir/transformations/acc_kernels_trans_test.py
Comment thread src/psyclone/tests/psyir/backend/fortran_unsupported_declns_test.py Outdated
@arporter
Copy link
Copy Markdown
Member Author

Doc test failure was a link to the Tau website that works fine. NEMOv4 IT is now fine but get error (timeout??) on the "speed test" - possibly the string handling has slowed-down the processing of the large file or perhaps the machine was busy.

@arporter
Copy link
Copy Markdown
Member Author

Anyway, ready for another look now.

Copy link
Copy Markdown
Collaborator

@sergisiso sergisiso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arporter This is approved for merging. All the comments have been addressed, and the rough edges of the implementation are captured in #3240. The integration tests all pass, the timeout was due to a busy system.

@sergisiso sergisiso merged commit bf74b74 into master Apr 20, 2026
14 of 15 checks passed
@sergisiso sergisiso deleted the 2612_add_len_to_scalartype branch April 20, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants