Skip to content

compiler: Include compiler settings in JIT cache keys - #3076

Merged
mloubout merged 1 commit into
mainfrom
fix-jit-library-paths
Oct 20, 2026
Merged

mloubout merged 1 commit into
mainfrom
fix-jit-library-paths

Conversation

@FabioLuporini

Copy link
Copy Markdown
Contributor

Make Compiler a Signer using the effective compiler command and file extensions. Include it in the operator JIT digest so changes to flags or external library search paths produce distinct cache keys. Preserve option order and cover stable and distinct names with library-directory, CFLAGS, and LDFLAGS regressions.

Make Compiler a Signer using the effective compiler command and file extensions. Include it in the operator JIT digest so changes to flags or external library search paths produce distinct cache keys. Preserve option order and cover stable and distinct names with library-directory, CFLAGS, and LDFLAGS regressions.
@FabioLuporini FabioLuporini added the bug-C bug in the generated code label Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.13%. Comparing base (3241a63) to head (11110b4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3076      +/-   ##
==========================================
+ Coverage   84.12%   84.13%   +0.01%     
==========================================
  Files         258      258              
  Lines       57176    57205      +29     
  Branches     4887     4889       +2     
==========================================
+ Hits        48098    48129      +31     
+ Misses       8250     8249       -1     
+ Partials      828      827       -1     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.42% <25.80%> (-0.04%) ⬇️
pytest-gpu-gcc- 78.97% <100.00%> (+0.06%) ⬆️
pytest-gpu-icx- 78.89% <100.00%> (+0.05%) ⬆️
pytest-gpu-nvc-nvidiaX 68.99% <25.80%> (-0.05%) ⬇️

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.

@mloubout
mloubout merged commit 16e6861 into main Oct 20, 2026
42 checks passed
@mloubout
mloubout deleted the fix-jit-library-paths branch October 20, 2026 16:36
Comment thread tests/test_operator.py

operators = []
for value in (*flags, flags[-1]):
monkeypatch.setenv(envvar, value)

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.

Can this be done without use of monkeypatch? We have switchenv for this right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-C bug in the generated code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants