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

Add .A[] access for table view support in debug #14

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

twicki
Copy link
Owner

@twicki twicki commented Dec 4, 2024

Add the GlobalTable feature support for debug backend.

Global table is an "off-grid" array that can only be accessed absolutely via data dimensions.

Copy link
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

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

Please fix the PR description. It's nice to have some context.

)
table_view[:] = [2, 3, 4, 5]

@gtscript.stencil(backend="debug")
Copy link
Collaborator

Choose a reason for hiding this comment

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

random thought: once we bring the debug backend back into gt4py mainline, we should check which tests are specific to the debug backend and which tests should actually be annotated with @gtscript.stencil(backend=ALL_BACKENDS (with potential excludes referencing issues with missing implementation in other backends)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll log that in right away, I can feel myself forgetting

Copy link
Collaborator

Choose a reason for hiding this comment

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

src/gt4py/cartesian/gtc/debug/debug_codegen.py Outdated Show resolved Hide resolved
)
table_view[:] = [2, 3, 4, 5]

@gtscript.stencil(backend="debug")
Copy link
Collaborator

Choose a reason for hiding this comment

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

@FlorianDeconinck FlorianDeconinck changed the title add .A[] access for table view support in debug Add .A[] access for table view support in debug Dec 4, 2024
@FlorianDeconinck FlorianDeconinck merged commit 8ed7a0d into int_cast_aboslute_k_debug Dec 4, 2024
0 of 3 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.

3 participants