Skip to content

[SYCL][L0] Remove ZeModule when program build failed #5541

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 31 commits into from
Feb 19, 2022

Conversation

bso-intel
Copy link
Contributor

When a sycl::program is attempted to build, a ZeModule is created.
When the attempt failed, we need to clean up the ZeModule that is associated with the failed program to avoid memory leak.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
When a sycl::program is attempted to build, a ZeModule is created.
When the attempt failed, we need to clean up the ZeModule that is
associated with the failed program to avoid memory leak.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
bso-intel added a commit to bso-intel/llvm-test-suite that referenced this pull request Feb 10, 2022
As I fixed memory leak of ZeModule in intel/llvm#5541,
we need to enable ZE_DEBUG=4 check for these tests.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bso-intel bso-intel marked this pull request as ready for review February 11, 2022 05:35
@bso-intel bso-intel requested a review from a team as a code owner February 11, 2022 05:35
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Co-authored-by: smaslov-intel <sergey.v.maslov@intel.com>
smaslov-intel
smaslov-intel previously approved these changes Feb 11, 2022
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
smaslov-intel
smaslov-intel previously approved these changes Feb 18, 2022
Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: smaslov-intel <sergey.v.maslov@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bader bader merged commit beb7277 into intel:sycl Feb 19, 2022
smaslov-intel pushed a commit to smaslov-intel/llvm that referenced this pull request Feb 19, 2022
When a sycl::program is attempted to build, a ZeModule is created.
When the attempt failed, we need to clean up the ZeModule that is associated with the failed program to avoid memory leak.
@bso-intel bso-intel deleted the buildfail-leak branch February 19, 2022 22:43
vladimirlaz added a commit to intel/llvm-test-suite that referenced this pull request Feb 21, 2022
* [SYCL] enable ZE_DEBUG=4 tests

As I fixed memory leak of ZeModule in intel/llvm#5541,
we need to enable ZE_DEBUG=4 check for these tests.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Co-authored-by: vladimirlaz <vladimir.lazarev@intel.com>
alexbatashev added a commit to alexbatashev/llvm that referenced this pull request Feb 23, 2022
* upstream/sycl: (2757 commits)
  [SYCL][Doc] Fixing incorrect merge of community Readme.md with our version (intel#5636)
  [SYCL] Change USM pooling parameters. (intel#5457)
  [CI] Fix cache location on Windows (intel#5603)
  [SYCL][NFC] Fix a warning about uninitialized struct members (intel#5610)
  [Buildbot] Update Windows GPU version to 101.1340 (intel#5620)
  Fix SPIRV -> OCL barrier call argument attributes
  Move SPV_INTEL_memory_access_aliasing tokens from spirv_internal
  [SYCL][ESIMD] Add support for named barrier APIs (intel#5583)
  [SYCL][L0] Remove ZeModule when program build failed (intel#5541)
  [SYCL] Silence "unknown attribute" warning for `device_indirectly_callable` (intel#5591)
  [SYCL][DOC] Introductory material for extensions (intel#5605)
  [SYCL][DOC] Change extension names to lower case (intel#5607)
  [SYCL] Improve get_kernel_bundle performance (intel#5496)
  [SYCL] Do not build device code for sub-devices (intel#5240)
  [sycl-post-link] Fix a crash during spec-constant properties generation (intel#5538)
  [SYCL][DOC] Move SPIR-V and OpenCL extensions (intel#5578)
  [SYCL][ESIMD][EMU] Update memory intrinsics for ESIMD_EMU plugin (intel#4748)
  [CI] Allow stale issue bot to analyze more issues (intel#5602)
  [SYCL][L0] Honor property::queue::enable_profiling (intel#5543)
  [OpenMP] Properly save strings when doing LTO
  ...
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
* [SYCL] enable ZE_DEBUG=4 tests

As I fixed memory leak of ZeModule in intel#5541,
we need to enable ZE_DEBUG=4 check for these tests.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Co-authored-by: vladimirlaz <vladimir.lazarev@intel.com>
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.

4 participants