Skip to content

compiler: Minor tweaks to enable integrated NCU-based profiling#2937

Open
FabioLuporini wants to merge 2 commits into
mainfrom
ncu-py
Open

compiler: Minor tweaks to enable integrated NCU-based profiling#2937
FabioLuporini wants to merge 2 commits into
mainfrom
ncu-py

Conversation

@FabioLuporini
Copy link
Copy Markdown
Contributor

Bulk of the code is in PRO

@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

❌ Patch coverage is 40.00000% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.36%. Comparing base (c71560b) to head (afa9cd0).

Files with missing lines Patch % Lines
devito/arch/archinfo.py 30.00% 7 Missing ⚠️
devito/parameters.py 0.00% 7 Missing ⚠️
devito/operator/profiling.py 37.50% 5 Missing ⚠️
devito/__init__.py 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2937      +/-   ##
==========================================
- Coverage   83.37%   83.36%   -0.02%     
==========================================
  Files         248      248              
  Lines       51881    51905      +24     
  Branches     4479     4479              
==========================================
+ Hits        43257    43271      +14     
- Misses       7867     7879      +12     
+ Partials      757      755       -2     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.67% <40.00%> (-0.02%) ⬇️
pytest-gpu-gcc- 78.06% <40.00%> (-0.03%) ⬇️
pytest-gpu-icx- 78.02% <40.00%> (+0.02%) ⬆️
pytest-gpu-nvc-nvidiaX 69.21% <40.00%> (-0.03%) ⬇️

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

☔ 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.

Comment thread devito/__init__.py
configuration.add('profiling', 'basic', list(profiler_registry), impacts_jit=False)
def profiling_preprocessor(i):
if isinstance(i, dict):
return NcuProfiling(i['ncu'])
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.

This could use a try/key error for safety

Comment thread devito/parameters.py
# Allow unquoted strings as `k:v` values.
processed.append(i)
values = processed
except AttributeError:
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.

Not sure why you need processed and values if you just do values = processed

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.

there is an eval above. This is essentially to avoid the user having to supply quotes in the env var , that is, instead of doing DEVITO_PROFILING="ncu:'ForwardFletcherTTI'" they can just do DEVITO_PROFILING="ncu:ForwardFletcherTTI"

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