Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[ESIMD] Fix stencil tests timeouts #244

Merged
merged 2 commits into from
Apr 23, 2021

Conversation

DenisBakhvalov
Copy link

I analyzed the history of ESIMD stencil tests in CI and found that
stencil tests are sensitive to the time limit. I.e. they are not
hanging but timing out before finishing the job.
Since #148 Stencil.cpp was failing several times per day.

This patch reduces back the working set for the two tests allowing
them to finish before in required time limit. Also, added a test
parameter to run with a bigger dimension size.

I analyzed the history of ESIMD stencil tests in CI and found that
stencil tests are sensitive to the time limit. I.e. they are not
hanging but timing out before finishing the job.
Since intel#148 Stencil.cpp was failing several times per day.

This patch reduces back the working set for the two tests allowing
them to finish before in required time limit. Also, added a test
parameter to run with a bigger dimension size.
@@ -79,7 +72,13 @@ bool CheckResults(float *out, float *in) {
return true;
}

int main(void) {
int main(int argc, char *argv[]) {
if (argc != 2) {

Choose a reason for hiding this comment

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

I suggest to set DIM_SIZE default to 10 and override if argc == 2.

Choose a reason for hiding this comment

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

... so that it is runnable w/o args, which most users will have no idea how to set.

Copy link
Author

Choose a reason for hiding this comment

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

Done

exit(1);
}
const unsigned DIM_SIZE = atoi(argv[1]);
const unsigned SQUARE_SZ = DIM_SIZE * DIM_SIZE + 16;

Choose a reason for hiding this comment

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

looks like code duplication. Can we move common part to header?

Copy link
Author

Choose a reason for hiding this comment

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

Will do that as a separate patch.

@vladimirlaz vladimirlaz merged commit 87c8ce6 into intel:intel Apr 23, 2021
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Apr 12, 2022
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
* [ESIMD] Fix stencil tests timeouts

I analyzed the history of ESIMD stencil tests in CI and found that
stencil tests are sensitive to the time limit. I.e. they are not
hanging but timing out before finishing the job.
Since intel#148 Stencil.cpp was failing several times per day.

This patch reduces back the working set for the two tests allowing
them to finish before in required time limit. Also, added a test
parameter to run with a bigger dimension size.

* Address review comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants