-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Split 'double type' test into two tests, 1) <test>.cpp; 2) <test>_aspect-fp64.cpp for llvm-test-suite #1150
Conversation
Failures are unrelated: [2022-08-17T07:35:47.081Z] Failed Tests (1): [2022-08-17T07:41:39.229Z] Unexpectedly Passed Tests (2): |
…NABLE_FP64` macro to split 'double' type code as following: ``` // test.cpp // RUN: ... -DENABLE_FP64=false constexpr bool EnableFP64 = ENABLE_FP64; void test() { // non-fp64-case do_smth(); if constexpr (EnableFP64) do_smth64(); } // test-fp64.cpp ; RUN: ... -DENABLE_FP64=true \#include <test-fp.cpp> ```
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.
Ok for ESIMD. Thank you.
I also have a non-blocking comment regarding the naming.
IMO, it is better to stick to underscores and not mix them with '-'.
E.g. "functions_select_2d_core_aspect_fp64.cpp" looks much better to me than "functions_select_2d_core_aspect-fp64.cpp"
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.
LGTM for spec constants
86e20be
Renamed these new added file with only underscores. |
Hi @Pennycook, |
Related failure:
This error
Unrelated failures:
|
A possible alternative solution is here: https://github.com/intel/llvm-test-suite/pull/1190/files |
Failures are known and unrelated. |
I did not merge this yet because of the comment from @romanovvlad (#1150 (comment)) and did not have clear understanding if the discussion here #1190 has got some solution/agreement. That alternative approach used in #1190 has sympathy/votes from at least 3 people. I gave my approval for this PR, but I'd rather let @romanovvlad to merge this patch if Vlad's comment was non-blocking |
Personally, I would vote for device code split approach, because it allows us to avoid duplicating coverage for non-optional types. I can help with creating PRs similar to one that @romanovvlad published (the first one to go is #1241) |
@v-klochkov, @myler , @romanovvlad , @AlexeySachkov @aelovikov-intel, can you please take a look at remaining ones on Windows? We currently have ~30 fails and it's really unsafe to merge anything else until these fixed. |
@myler, should we close this PR in favor of alternatives in progress? |
Hi @pvchupin This solution tends to change the testing framework #1190 tends to use SYCL style solution to handle If the final decision is to use |
That seems like a better solution to me. Once we implement the OptionalDeviceFeatures design, we can remove the "-fsycl-device-code-split=per_kernel", which should be relatively easy. Are you saying there are 26 test failures that will not be fixed with this technique? Do we know what the cause of those failures is? |
Close this PR as we have another alternative. |
'double' type are not native supported in Intel Gen11/12 and next Gens GPUs in the future, to disable particularly big number of important tests is not reasonable, so split 'double' part into two separate test file.
REQUIRES:aspect-fp64
to restrict some 'double' type tests "_double.cpp", "_fp64.cpp", "_fp_extra.cpp", etc.