-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Fix memory leak for sycl::device::get_devices #2256
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
Conversation
Plugins create pi_device objects for root devices, but it does not call piDeviceRelease and causes memory leaks. This slows the performance of SYCL apps. Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bader @vladimirlaz @romanovvlad |
// | ||
// UNSUPPORTED: windows | ||
// | ||
//==-----memory-consumption.cpp - SYCL memory consumption basic test ------==// |
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.
I think this test is valuable to check overall memory consumption. But I suggest adding more specific test on the change you are doing, such a verification could be done by setting SYCL_PI_TRACE and checking its output(see sycl/test/scheduler/ReleaseResourcesTest.cpp as an example).
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.
I will make a follow-up patch for this SYCL_PI_TRACE later.
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.
I'm OK if additional test will be added in the follow up patch.
#2256) This patch introduces a way to use runtime values for structure fields. Co-authored-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com> Original commit: KhronosGroup/SPIRV-LLVM-Translator@a6f017a
…t pt.2 (#2296) This patch introduces a way to use runtime values for array and vector types. It continues #2256 Original commit: KhronosGroup/SPIRV-LLVM-Translator@4db768c
Avoid potential ambiguity in UrReturnHelper
Plugins create pi_device objects for root devices, but
it does not call piDeviceRelease and causes memory leaks.
This slows the performance of SYCL apps.
Signed-off-by: Byoungro So byoungro.so@intel.com