-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
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.
SYCL/ESIMD/Stencil.cpp
Outdated
@@ -79,7 +72,13 @@ bool CheckResults(float *out, float *in) { | |||
return true; | |||
} | |||
|
|||
int main(void) { | |||
int main(int argc, char *argv[]) { | |||
if (argc != 2) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
…remove_ocl_interop_xmain [SYCL] Remove old style interop https://jira.devtools.intel.com/browse/CMPLRLLVM-30579
* [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
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.