Skip to content

compiler: Revamp bug-async-degree opt-option - #3023

Merged
FabioLuporini merged 4 commits into
mainfrom
revamp-buf-async-degree
Sep 23, 2026
Merged

FabioLuporini merged 4 commits into
mainfrom
revamp-buf-async-degree

Conversation

@FabioLuporini

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.94%. Comparing base (760a476) to head (d64d7bc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3023      +/-   ##
==========================================
+ Coverage   83.89%   83.94%   +0.04%     
==========================================
  Files         258      258              
  Lines       55605    55676      +71     
  Branches     4765     4772       +7     
==========================================
+ Hits        46652    46738      +86     
+ Misses       8135     8124      -11     
+ Partials      818      814       -4     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.68% <86.48%> (+0.03%) ⬆️
pytest-gpu-gcc- 78.58% <74.44%> (+0.01%) ⬆️
pytest-gpu-icx- 78.50% <74.44%> (+0.01%) ⬆️
pytest-gpu-nvc-nvidiaX 69.21% <86.48%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

Comment thread devito/core/operator.py Outdated
Comment on lines +266 to +270
async_degree = oo['buf-async-degree']
if async_degree is not None and (
isinstance(async_degree, bool) or
not is_integer(async_degree) or async_degree < 0
):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there some way to express this more concisely?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

tweaked

Comment thread tests/test_buffering.py Outdated


def test_read_only_backwards():
@pytest.mark.parametrize('async_degree', [None, 4])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should another check be added to this test to ensure this parameterisation results in the desired effect in the gencode?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

@FabioLuporini
FabioLuporini force-pushed the revamp-buf-async-degree branch from 69843a7 to f8d6e0f Compare September 21, 2026 15:01
@FabioLuporini
FabioLuporini force-pushed the revamp-buf-async-degree branch from f8d6e0f to a812d79 Compare September 21, 2026 16:18
Comment thread devito/passes/clusters/buffering.py Outdated
"""Extend `ispace` to include `f`'s HALO."""
def _include_halo(ispace, f, dims=None):
"""Extend `ispace` to include `f`'s HALO along `dims`."""
dims = f.dimensions if dims is None else dims

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dims = dims or f.dimensions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@FabioLuporini
FabioLuporini merged commit 93f54b1 into main Sep 23, 2026
42 checks passed
@FabioLuporini
FabioLuporini deleted the revamp-buf-async-degree branch September 23, 2026 12:57
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.

3 participants