Make math_builtin_api tests splittable into smaller chunks #889
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the some of the generated
math_builtin_api
tests are huge. These are the current line counts:When building on release mode,
-O3
optimization will be used, which aside from making compilation taking much longer, will make buildingmath_builtin_integer.cpp
use an unreasonable amount of RAM for the average person (64GB+).This PR adds a functionality to split these tests into smaller chunks, which allows for each chunk to be compiled with a reasonable amount of RAM, and leads to a much faster compilation time.
Each of the original generated files listed above are all split into a test-wide configurable amount
SYCL_CTS_MATH_BUILTIN_N_SPLITS
, which is 16 initially. This makes each of the chunks of the biggest testmath_builtin_integer.cpp
under 5k LOC.