-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] E2E test to retain PI events until they have signaled #180
Conversation
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
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
SYCL/Plugin/retain_events.cpp
Outdated
std::fill(dst, dst + N, 0); | ||
|
||
for (int i = 0; i < 256; ++i) { | ||
sycl::queue Q { C , D, async_sycl_error };//, sycl::property::queue::enable_profiling() }; |
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.
sycl::queue Q { C , D, async_sycl_error };//, sycl::property::queue::enable_profiling() }; | |
sycl::queue Q { C , D, async_sycl_error }; |
It is illegal to destroy an event until it is completed in the GPU. This change prevents sporadic failures due to Level-Zero RT crashes because we released event too early. I am adding E2E test: intel/llvm-test-suite#180 Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
@smaslov-intel, could you please fix clang-format issue? |
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.
@smaslov-intel, could you please fix clang-format issue?
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
}); | ||
}); | ||
} | ||
|
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.
@smaslov-intel, @againull, shouldn't we set SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY or wait for all kernels to complete before freeing USM memory to make this test valid?
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.
@alexbatashev FYI.
…lvm-test-suite#180) Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
Covers the change in intel/llvm#3350
Signed-off-by: Sergey V Maslov sergey.v.maslov@intel.com