Skip to content

intrinsic-test: combine C files for faster compilation #1862

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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

folkertdev
Copy link
Contributor

There are 3 main changes

  • emit the arguments (the arrays of inputs) inside of the test function, and rename the test function from main to run_{intrinsic_name}.
  • generate number-of-cores files, and evenly divide all intrinsics over these files. Each file now has the functions for running many different intrinsic tests
  • generate a main that is just a gigantic switch to select the right test to run

Parts of this are still inefficient, and for the full effect the rust side also needs work, but I suspect this is the biggest win (if not, it's actually cargo, we'll see I guess), and sort of a manageable change to review (hopefully).

@folkertdev folkertdev changed the title combine C files for faster compilation intrinsic-test: combine C files for faster compilation Jul 11, 2025
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.

1 participant