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

Add FAST CI versions of tests #9

Merged
merged 4 commits into from
Dec 3, 2020
Merged

Add FAST CI versions of tests #9

merged 4 commits into from
Dec 3, 2020

Conversation

jerryz123
Copy link
Collaborator

This PR modifies the tests to run much faster when the -DFAST flag is passed to gcc. The FAST flag generally reduces the size of the inputs, replaces calls to rand() with constants, and avoids calling the slow CPU versions of various functions.

Additionally, make rules for running the tests are added.

@jerryz123 jerryz123 requested review from hngenc and alonamid December 1, 2020 19:30
@hngenc
Copy link
Member

hngenc commented Dec 1, 2020

Do you want to add this to make the CI tests run faster?

@jerryz123
Copy link
Collaborator Author

Yeah, these are used for the gemmini automatic tests

@jerryz123 jerryz123 closed this Dec 1, 2020
@jerryz123 jerryz123 reopened this Dec 1, 2020
@hngenc
Copy link
Member

hngenc commented Dec 1, 2020

But if they're running automatically anyway, then what's wrong with them taking a few hours?

@jerryz123
Copy link
Collaborator Author

They time-out on the CI machines.

@@ -91,6 +91,10 @@ int main() {
}
#endif

#ifdef FAST
exit(0);
Copy link
Member

Choose a reason for hiding this comment

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

Can we just not run these tests, instead of adding an early exit here?

@hngenc
Copy link
Member

hngenc commented Dec 2, 2020

Looks good to me overall. Just not sure if we need the "ifdef FAST exit(0)" lines.

@hngenc hngenc merged commit 2973bee into dev Dec 3, 2020
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