ucb-bar / gemmini-rocc-tests

Fork of seldridge/rocket-rocc-examples with tests for a systolic array based matmul accelerator
Other
52 stars 40 forks source link

Add FAST CI versions of tests #9

Closed jerryz123 closed 3 years ago

jerryz123 commented 4 years ago

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.

hngenc commented 4 years ago

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

jerryz123 commented 4 years ago

Yeah, these are used for the gemmini automatic tests

hngenc commented 4 years ago

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

jerryz123 commented 4 years ago

They time-out on the CI machines.

hngenc commented 4 years ago

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