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

[SYCL] test for https://github.com/intel/llvm/pull/4405 #424

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

smaslov-intel
Copy link

@smaslov-intel smaslov-intel commented Aug 26, 2021

Verify balanced event retains/releases under special circumstances.
Signed-off-by: Sergey V Maslov [email protected]

@romanovvlad
Copy link

Could you please add more information about the bug this test should trigger?

Signed-off-by: Sergey V Maslov <[email protected]>
@smaslov-intel
Copy link
Author

Could you please add more information about the bug this test should trigger?

It was crashing due to imbalance of event retain/releases (from within Level-Zero plugin) with this special test. I've updated PR description too.

@asudarsa
Copy link

It might be helpful to add the description of this test as a comment inside the test.

@romanovvlad
Copy link

romanovvlad commented Aug 27, 2021

Could you please add more information about the bug this test should trigger?

It was crashing due to imbalance of event retain/releases (from within Level-Zero plugin) with this special test. I've updated PR description too.

Thanks. Can we have a test which makes that event retain/release is balanced now in a more reliable way than just crash/not crash? I believe there were are checks in the Level Zero plugin that track reference counters.

@smaslov-intel
Copy link
Author

The crash is actually a reliable "die" in L0 plugin, when release is called on an object that has 0 ref-count. I wouldn't want to spend time on crafting a more general test here for the reported regression.

@romanovvlad
Copy link

The crash is actually a reliable "die" in L0 plugin, when release is called on an object that has 0 ref-count.

Will the test crash if the number of "retains" is bigger than the number of "retains"(imbalance in the opposite direction)?

I wouldn't want to spend time on crafting a more general test here for the reported regression.

Ok.

? "L0"
: "OpenCL";
device dev = Q.get_device();
size_t max_compute_units = dev.get_info<info::device::max_compute_units>();

Choose a reason for hiding this comment

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

Minor.
Information about compute units seems to be irrelevant to the test case.

@smaslov-intel
Copy link
Author

Will the test crash if the number of "retains" is bigger than the number of "retains"(imbalance in the opposite direction)?

Not this one, but we run entire LIT testing with ZE_DEBUG=4, mode in which L0 resources leaks are detected, we also run tests with valgrind. This test is specifically for the regression observed (and not caught by any other existing testing).

Copy link

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

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

Approving. Please, note there was a minor comment from me.

@vladimirlaz vladimirlaz merged commit a57fa89 into intel:intel Sep 6, 2021
alexbatashev added a commit to alexbatashev/llvm-test-suite that referenced this pull request Sep 11, 2021
* upstream/intel: (70 commits)
  [SYCL][Matrix] Add the 8 bit type variants (intel#443)
  [SYCL] testing of linking in the presence of multiple kernels (intel#440)
  [NFC] Add Sergey to CODEOWNERS of USM test (intel#455)
  [ESIMD] E2E test for writeable simd_view subscript operator (intel#415)
  [SYCL] Eliminate usages of _class aliases (intel#449)
  [SYCL] Enable assert AOT test (intel#450)
  [SYCL] Disable flaky Plugin/level_zero_dynamic_batch_test (intel#453)
  [SYCL] Ensure JIT failure on all Intel devices (intel#452)
  [SYCL] Removed the remained handler::codeplay_host_task (intel#451)
  [SYCL] Test for Group Mask feature (intel#441)
  [SYCL] Update kernel_bundle test for default contexts (intel#446)
  [SYCL] Replace using of ONEAPI/INTEL namespaces with ext::oneapi/intel (intel#442)
  [SYCL] Replace deprecated has_extension (intel#434)
  [SYCL] test for intel/llvm#4405 (intel#424)
  [SYCL] Remove function pointers extension tests (intel#437)
  [SYCL] Added test for deprecated features (intel#435)
  Fix check for availability of sycl.hpp (intel#445)
  [SYCL] Update tests for default context extension (intel#433)
  Use sycl.hpp workaround only if compiler doesn't have it (intel#439)
  [SYCL] Allow extra command line options implicitely added by compiler (intel#432)
  ...
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
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.

4 participants