Skip to content

[NFC][SYCL][MATRIX] Add std::ignore for unused parameters to fix warnings. #8684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

arnamoy10
Copy link
Contributor

No description provided.

Copy link
Contributor

@dkhaldi dkhaldi left a comment

Choose a reason for hiding this comment

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

LGTM

@arnamoy10 arnamoy10 temporarily deployed to aws March 17, 2023 01:07 — with GitHub Actions Inactive
@arnamoy10 arnamoy10 temporarily deployed to aws March 17, 2023 01:40 — with GitHub Actions Inactive
@bader bader changed the title [FIX][MATRIX] Adding std::ignore for device compilation to remove build warning. [NFC][MATRIX] Add std::ignore for unused parameters to fix warnings. Mar 17, 2023
@bader bader changed the title [NFC][MATRIX] Add std::ignore for unused parameters to fix warnings. [NFC][SYCL][MATRIX] Add std::ignore for unused parameters to fix warnings. Mar 17, 2023
@bader
Copy link
Contributor

bader commented Mar 17, 2023

@intel/dpcpp-esimd-reviewers, @arnamoy10, it seems like ESIMD tests are broken in pre-commit. It doesn't look like this patch can cause such failures.

********************
Timed Out Tests (8):
  SYCL :: lsc/lsc_usm_block_load_u8_u16.cpp
  SYCL :: lsc/lsc_usm_block_load_u8_u16_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32_scalar_off.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64_scalar_off.cpp

********************
Failed Tests (25):
  SYCL :: lsc/lsc_surf_load_u16u32.cpp
  SYCL :: lsc/lsc_surf_load_u32.cpp
  SYCL :: lsc/lsc_surf_load_u32_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u64.cpp
  SYCL :: lsc/lsc_surf_load_u64_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u8_u16.cpp
  SYCL :: lsc/lsc_surf_load_u8_u16_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u8u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u16u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u64.cpp
  SYCL :: lsc/lsc_surf_prefetch_u8u32.cpp
  SYCL :: lsc/lsc_surf_store_u16u32.cpp
  SYCL :: lsc/lsc_surf_store_u32.cpp
  SYCL :: lsc/lsc_surf_store_u32_stateless.cpp
  SYCL :: lsc/lsc_surf_store_u64.cpp
  SYCL :: lsc/lsc_surf_store_u64_stateless.cpp
  SYCL :: lsc/lsc_surf_store_u8_u16.cpp
  SYCL :: lsc/lsc_surf_store_u8u32.cpp
  SYCL :: lsc/lsc_usm_block_load_u32.cpp
  SYCL :: lsc/lsc_usm_block_load_u32_64.cpp
  SYCL :: lsc/lsc_usm_block_load_u32_scalar_off.cpp
  SYCL :: lsc/lsc_usm_block_load_u64.cpp
  SYCL :: lsc/lsc_usm_block_load_u64_64.cpp
  SYCL :: lsc/lsc_usm_block_load_u64_scalar_off.cpp

@v-klochkov
Copy link
Contributor

@intel/dpcpp-esimd-reviewers, @arnamoy10, it seems like ESIMD tests are broken in pre-commit. It doesn't look like this patch can cause such failures.

********************
Timed Out Tests (8):
  SYCL :: lsc/lsc_usm_block_load_u8_u16.cpp
  SYCL :: lsc/lsc_usm_block_load_u8_u16_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u32_scalar_off.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64_64.cpp
  SYCL :: lsc/lsc_usm_prefetch_u64_scalar_off.cpp

********************
Failed Tests (25):
  SYCL :: lsc/lsc_surf_load_u16u32.cpp
  SYCL :: lsc/lsc_surf_load_u32.cpp
  SYCL :: lsc/lsc_surf_load_u32_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u64.cpp
  SYCL :: lsc/lsc_surf_load_u64_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u8_u16.cpp
  SYCL :: lsc/lsc_surf_load_u8_u16_stateless.cpp
  SYCL :: lsc/lsc_surf_load_u8u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u16u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u32.cpp
  SYCL :: lsc/lsc_surf_prefetch_u64.cpp
  SYCL :: lsc/lsc_surf_prefetch_u8u32.cpp
  SYCL :: lsc/lsc_surf_store_u16u32.cpp
  SYCL :: lsc/lsc_surf_store_u32.cpp
  SYCL :: lsc/lsc_surf_store_u32_stateless.cpp
  SYCL :: lsc/lsc_surf_store_u64.cpp
  SYCL :: lsc/lsc_surf_store_u64_stateless.cpp
  SYCL :: lsc/lsc_surf_store_u8_u16.cpp
  SYCL :: lsc/lsc_surf_store_u8u32.cpp
  SYCL :: lsc/lsc_usm_block_load_u32.cpp
  SYCL :: lsc/lsc_usm_block_load_u32_64.cpp
  SYCL :: lsc/lsc_usm_block_load_u32_scalar_off.cpp
  SYCL :: lsc/lsc_usm_block_load_u64.cpp
  SYCL :: lsc/lsc_usm_block_load_u64_64.cpp
  SYCL :: lsc/lsc_usm_block_load_u64_scalar_off.cpp

Most likely that is the typical scenario with Old(morning) compiler build used by CI and NEW tests.
We recently merged 2 commits:
PR: #8316
Test PR: #8316

PR (8316) did not catch the morning compiler build time.

@fineg74 - can you please check/confirm if that is new regression caused by your fix, or just bad timing for the merge?

@bader
Copy link
Contributor

bader commented Mar 17, 2023

@v-klochkov, I checked before commenting that @arnamoy10's branch is based on HEAD of sycl branch, so all compiler commits are there. AFAIK, CI takes HEAD of intel branch in llvm-test-suite repository. You put wrong link for the test PR. Could you tell of test PR was committed less than hour ago?

@fineg74
Copy link
Contributor

fineg74 commented Mar 17, 2023

I am not sure it is related to the change but likely some emulator issue:
The test was merged together with compiler and bad timing would lead to compilation errors rather than execution errors
All the tests fail with following error:
EMU: *** Error --------------------------------------------------------------------------
Received signal 6 SIGABRT. Terminating.

command stderr:

terminate called after throwing an instance of 'sycl::_V1::memory_allocation_error'
what():
EMU: *** Error --------------------------------------------------------------------------
Received signal 6 SIGABRT. Terminating

The only change that could be related to allocation is use of aligned memory allocation i.e. sycl::aligned_alloc_shared and sycl::usm_allocator<T, sycl::usm::alloc::host, Flags::template alignment<__ESIMD_DNS::__raw_t>> in the tests. The code patch doesn't do any allocation.
I am not sure that there is a difference between regular allocation vs aligned allocation from emulator perspective.
Not every test affected by the change has failed here and different CI runs produce different set of failing sets (https://github.com/intel/llvm/actions/runs/4439865937/jobs/7794571728 for example has 3 timeouts and 34 failures vs 8 timeouts and 25 failures here)

@steffenlarsen
Copy link
Contributor

I am merging this as it is very clearly a NFC and it would be best to get post-commit building again. Feel free to continue the discussion.

@steffenlarsen steffenlarsen merged commit 9596ea0 into intel:sycl Mar 17, 2023
@bader
Copy link
Contributor

bader commented Mar 17, 2023

I am not sure it is related to the change but likely some emulator issue: The test was merged together with compiler and bad timing would lead to compilation errors rather than execution errors All the tests fail with following error: EMU: *** Error -------------------------------------------------------------------------- Received signal 6 SIGABRT. Terminating.

command stderr:

terminate called after throwing an instance of 'sycl::_V1::memory_allocation_error' what(): EMU: *** Error -------------------------------------------------------------------------- Received signal 6 SIGABRT. Terminating

The only change that could be related to allocation is use of aligned memory allocation i.e. sycl::aligned_alloc_shared and sycl::usm_allocator<T, sycl::usm::alloc::host, Flags::template alignment<__ESIMD_DNS::__raw_t>> in the tests. The code patch doesn't do any allocation. I am not sure that there is a difference between regular allocation vs aligned allocation from emulator perspective. Not every test affected by the change has failed here and different CI runs produce different set of failing sets (https://github.com/intel/llvm/actions/runs/4439865937/jobs/7794571728 for example has 3 timeouts and 34 failures vs 8 timeouts and 25 failures here)

@fineg74, @intel/dpcpp-esimd-reviewers, please, investigate and fix this issues as soon as possible. This issue impact pre-commit validation.
See https://github.com/intel/llvm/actions/runs/4447776170/jobs/7810525573?pr=8688 - pre-commit results for #8688. I need time for analysis, I suggest disabling tests temporarily.

@bader
Copy link
Contributor

bader commented Mar 17, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants