-
Notifications
You must be signed in to change notification settings - Fork 131
[SYCL][ESIMD] Ignore warning messages from CM_EMU for esimd_emulator #626
[SYCL][ESIMD] Ignore warning messages from CM_EMU for esimd_emulator #626
Conversation
- Warning messages from CM_EMU library for esimd_emulator cause failures for 'CHECK' and 'diff' commands - 'XFAIL:esimd_emulator' is marked for tests using 'CHECK' command - 'grep' command is inserted in pipeline for 'sycl-ls.cpp' test in order to filter out those warning messages
SYCL/DeviceLib/built-ins/printf.cpp
Outdated
@@ -1,5 +1,11 @@ | |||
// UNSUPPORTED: cuda || hip | |||
// CUDA and HIP don't support printf. | |||
|
|||
// esimd_emulator : Warning messages from CM_EMU library for emulation |
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.
@kbobrovs do you think these comments need to be guarded with the ESIMD Intel feature?
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.
@vzakhari - no, I don't think it needs to, as this is public feature. But all non-ESIMD tests should be guarded with // UNSUPPORTED: esimd_emulator, as this BE can only run ESIMD tests.
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, @dongkyunahn-intel, why bother adding // XFAIL: esimd_emulator rather than // UNSUPPORTED: esimd_emulator? Do you expect this test to pass in future?
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.
'XFAIL' is already added below - line 7.
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.
Please re-read my question. XFAIL should not be there.
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
… esimd_emulator_ignore_cm_warnings
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.
DeviceLib LGTM
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.
Warning messages from CM_EMU library for esimd_emulator cause
failures for 'CHECK' and 'diff' commands
@dongkyunahn-intel, could you elaborate on the problem, please?
I'm not sure what scenarios are impacted. It looks like warnings appears for the test not using ESIMD feature, which means that it might impact any new test we add. If so, I don't think that adding "UNSUPPORTED: esimd_emulator" is the solution we want here.
Failure caused warning message is discussed here - #582 (comment). 'UNSUPPORTED' marking was applied for other non-ESIMD tests failing with 'esimd_emulator' per Konst's suggestion - 4ab7155. |
From the comment: "CM_EMU library supporting ESIMD_EMULATOR could print out extra info for debugging - like first three lines of above." I suggest we treat cm emulator the same way to treat other external dependencies (e.g. OpenCL drivers). We have documented versions of these dependencies, which we tested and know won't cause too much troubles to our users (see https://github.com/intel/llvm/blob/sycl/buildbot/dependency.conf). We regularly test new versions and update this document if new versions pass testing and block updates if new version regress testing. |
… esimd_emulator_ignore_cm_warnings
… esimd_emulator_ignore_cm_warnings
CM_EMU prints out various messages depending on environment variable setup like
I think what you mean by 'half of all existing tests' is |
Maybe it would be better to add specific run command to run the test on ESIMD device (HW or emulator) like it's done for FPGA.
This allows us to explicitly opt-in tests. |
@bader, yes, we thought of such way of running tests. But I think this discords with overall lit testing approach, where device to run on is selected at the time of running the tests. All ESIMD test should run on both GPU and host emulation, and it is quite convenient to be able to run on host emulation only when Intel GPU device is not available. On the other hand, only ESIMD tests can run on host emulation, and we have to mark all other ones as UNSUPPORTED on non-emulator devices (or REQUIRE emulator device). Not sure what's best solution here. |
I'm strongly against forcing additional markings for non-ESIMD tests. These must be applied by default implicitly. |
@kbobrovs , can I merge this PR only for ignoring failures from CM_EMU warning logs after reverting changes for 'UNSUPPORTED' marking? My intel/llvm PR (intel/llvm#5058) is blocked because of warning messages - not because of lack of 'UNSUPPORTED' marking. I would like to have discussion on this marking in another PR. |
Hi. As of recent, warnings are not displayed by default in EMU, this should not be a problem anymore. |
This change has not been propagated to open-source CM_EMU git repo where ESIMD_EMULATOR building process downloads source file from (https://github.com/intel/cm-cpu-emulation). I'm waiting for it. |
@dongkyunahn-intel, no, I don't think so, as @bader objects. We need some other solution
Are you going to close this one then? I'm little lost WRT to plans on this and other ESIMD emulator PRs. |
Closing this PR as warning message suppression from CM_EMU is applied in intel/llvm#5058. |
Warning messages from CM_EMU library for esimd_emulator cause
failures for 'CHECK' and 'diff' commands
'XFAIL:esimd_emulator' is marked for tests using 'CHECK' command
'grep' command is inserted in pipeline for 'sycl-ls.cpp' test in
order to filter out those warning messages