Skip to content

Conversation

@Zetsyog
Copy link

@Zetsyog Zetsyog commented Nov 25, 2024

When using openscop as input for pluto that is not straight out from clan, pluto is failing.
See the example with the following scop file.

input.scop.txt

Pluto compute the number of scattering dimension as 2 * niter + 1 (with niter being the number of iterators of the statement)
This is true when the openscop is extracted from clan, but not always true.

The OpenScop Library provides the osl_relation_get_attributes function to retrieve the numder of iterators and scattering dimensions which fixes the issue.

@Zetsyog Zetsyog marked this pull request as ready for review November 25, 2024 18:06
@Zetsyog Zetsyog changed the title Fix openscop scattering dimnesion parsing error Fix openscop scattering dimension parsing error Nov 25, 2024
@bondhugula bondhugula self-requested a review March 16, 2025 02:03
Copy link
Owner

@bondhugula bondhugula left a comment

Choose a reason for hiding this comment

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

Thank you for this fix. Can you also please add the test case? It can be added under test/ and included in the list in tests.sh.

@bondhugula
Copy link
Owner

Thank you for this fix. Can you also please add the test case? It can be added under test/ and included in the list in tests.sh.

I now notice the input is in openscop format and so we'll need a different testing mechanism than the current tests.

Copy link
Author

@Zetsyog Zetsyog left a comment

Choose a reason for hiding this comment

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

I also noticed that lots of scripts are using /bin/bash as shebang. Using /usr/bin/env bash is more portable. Can I add this change in this PR or should I create another one ?

Copy link
Owner

@bondhugula bondhugula left a comment

Choose a reason for hiding this comment

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

LGTM - thanks. Please squash fixup commits.

@bondhugula bondhugula merged commit d758ec1 into bondhugula:master Mar 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants