Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

338 request for fuselets #339

Merged
merged 60 commits into from
Jan 8, 2025
Merged

338 request for fuselets #339

merged 60 commits into from
Jan 8, 2025

Conversation

anyzelman
Copy link
Member

@anyzelman anyzelman commented Oct 9, 2024

MR that provides so-called fuselets.

Fuselets are sequences of operations that may occur in existing code bases, and could be accelerated using the nonblocking backend. A fuselet represents such a sequence of operations, which are exposed as a single plain-C function call. ALP during its standard build will generate a library of those fuselets using its nonblocking backend, thus resulting in high-performance, automatically fused kernels.

The fuselets furthermore, at run-time and again automatically, tunes performance parameters such as tile sizes and the number of threads to be used.

Finally, the example fuselets provided in include/transition/fuselets.h and src/transition/fuselets.cpp demonstrate how easy it is to use ALP to provide arbitrary fuselets that existing code bases may require, and are easily modified or extended.

This MR also includes:

  • smoke and performance tests for the new fuselets;
  • standard semiring and monoid definitions in the new grb::monoids and grb::semirings namespaces;
  • tests for those standard semirings and monoids (insofar possible);
  • a bugfix in the stdout of the spmspm unit test;
  • a bugfix for missing cstdint includes in various headers; and
  • as always, minor code style fixes.

@anyzelman anyzelman linked an issue Oct 9, 2024 that may be closed by this pull request
@anyzelman anyzelman self-assigned this Oct 9, 2024
@anyzelman anyzelman modified the milestones: v0.9, v0.8 Oct 9, 2024
@anyzelman
Copy link
Member Author

Code review nearly complete. Could remove some element-wise scalar divisions, but need to double-check (lack of) impact on performance. After that, should be ready for merge.

@anyzelman
Copy link
Member Author

Code review complete. Waiting CI OKs before merge.

@anyzelman
Copy link
Member Author

All CIs pass, manual full test suite runs OK, manual checks of fuselets speedup (vs. blocking) also pass. Will merge.

@anyzelman anyzelman merged commit 55d74ec into develop Jan 8, 2025
2 checks passed
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.

Request for fuselets
1 participant