Skip to content

Conversation

@loiseaujc
Copy link
Contributor

@loiseaujc loiseaujc commented Sep 30, 2025

Most of the loops that could be replaced by do concurrent have been.
On my laptop, here are the timings I gets:

  • Legacy code:

    • bench01_zfft : 3.19 seconds
    • bench02_zfft : 4.10 seconds
    • bench03_dfft : 1.80 seconds
  • Do-concurrent code:

    • bench01_zfft : 2.26 seconds (1.4x speedup)
    • bench02_zfft : 2.90 seconds (1.4x speedup)
    • bench03_dfft : 1.50 seconds (1.2x speedup)

Both codes are compiled with gfortran 13.3. The speed-ups are obviously to be taken with a grain of salt. We would need to do a proper performances analysis with sequences of varying lengths. Still, it's pretty nice I believe.

ping @perazz @zoziha
PS : This PR builds upon the intent_specs one and should be merge after the latter.

@loiseaujc loiseaujc marked this pull request as draft September 30, 2025 12:28
@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 63.30275% with 160 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.92%. Comparing base (afcfff6) to head (a2ae6f3).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/radb5.f90 0.00% 35 Missing ⚠️
src/radf5.f90 0.00% 35 Missing ⚠️
src/passb5.f90 0.00% 34 Missing ⚠️
src/passf5.f90 0.00% 34 Missing ⚠️
src/radbg.f90 66.66% 9 Missing ⚠️
src/radfg.f90 66.66% 9 Missing ⚠️
test/test_fftpack_parseval.f90 93.75% 2 Missing ⚠️
src/passb.f90 93.33% 1 Missing ⚠️
src/passf.f90 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
- Coverage   82.99%   82.92%   -0.08%     
==========================================
  Files          67       68       +1     
  Lines        2317     2202     -115     
  Branches      182      183       +1     
==========================================
- Hits         1923     1826      -97     
+ Misses        394      376      -18     

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

@loiseaujc loiseaujc marked this pull request as ready for review September 30, 2025 12:32
Update do concurrent branch with latest devs from main.
Trying out if I enter some untested lines yet.
@loiseaujc
Copy link
Contributor Author

@perazz and @zoziha : I think it is ready for review.

Copy link
Contributor

@zoziha zoziha left a comment

Choose a reason for hiding this comment

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

@loiseaujc Thank you for your attention to and improvements on fftpack. I have made some modifications regarding the do concurrent indexing, hoping they will be helpful. Everything else looks good to me, and the tests have passed.

@loiseaujc
Copy link
Contributor Author

Done.

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.

2 participants