Repository navigation
CI: one job per compiler (fpm only), separate matplotlib job - #28
Merged
Merged
Conversation
Every compiler now has a pixi environment holding only the compiler and fpm, and its tests run as `fpm test`, so the regular tests need no Python: - gfortran (new, conda-forge gfortran 16): plain and -O3 -march=native - flang: plain and -O3 -march=native - LFortran: plain Each job also builds and runs the demo. `fpm test` builds the package, so the separate fpm build step is gone, and so are scripts/build_flang.sh and scripts/build_lfortran.sh, which the tasks no longer need. The matplotlib comparison is its own job, on the flang build as before. Its references and pictures are pixi tasks with inputs and outputs, so they are made once and the five comparisons reuse them instead of rebuilding fplot five times.
The new GFortran -O3 -march=native job on x86-64 failed hist_opts and hist_orient. hist built the last edge as lo + nb*w, which fused multiply-add can round to one ulp below maxval(x); the largest sample then failed the x > edges(nb+1) test and dropped out, shortening the last bar and rescaling every density. The last edge is now hi itself, as numpy's linspace makes it. CI also uploads tests/out when a job fails, so a failing picture can be looked at instead of reasoned about.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jobs (Linux):
gfortran: gfortran 16 + fpmfpm test,fpm test --flag '-O3 -march=native', demoflang: flang 22 + fpmfpm test,fpm test --flag '-O3 -march=native', demolfortran: LFortran 0.66 + fpmfpm test, demomatplotlib: flang + Python, matplotlib, poppler, ghostscriptfpm testbuilds the package and checks every picture againsttests/fingerprints.txt.fpm testeverywhere. The separate "Build as an fpm package" step is gone (fpm test builds the package), as arescripts/build_flang.shandscripts/build_lfortran.sh. Pixi tasks:test-gfortran,test-gfortran-O3,test-flang,test-flang-O3,test-lfortran,demo-*; each is defined in one environment only, sopixi run test-lfortranpicks its environment by itself.mpl-refsandtest-outputsdeclare inputs and outputs, so the comparisons after them get a pixi cache hit.pixi run compare-allruns all five locally.--fastdoes not compile fplot yet.tests/outas an artifact (tests-out-<job>), so a failing picture can be looked at directly.Bug the new GFortran job found: on x86-64,
-O3 -march=nativefailedhist_optsandhist_orient(38–40 bits).histbuilt the last bin edge aslo + nb*w, which fused multiply-add can round one ulp belowmaxval(x), so the largest sample fell outside every bin, shortening the last bar and rescaling every density. The last edge is nowhiitself, as numpy'slinspacemakes it. No stored fingerprint changes (all plain builds already had the last edge equal tohi).Verified locally (macOS), every task: gfortran and flang plain 0 bits,
-O35 bits, LFortran 5 bits, all three demos run, matplotlib references and pictures made once and reused by the comparisons (cache hit), SVG and PNG comparisons pass.