dev-util/hip: Remove invalid assert (caused random unittest failures in hiprt)

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42717
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-06-23 21:08:55 +00:00
committed by Alfredo Tupone
parent 0927a65b2a
commit 9d786a54cd
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
Remove invalid assert (caused random unittest failures in hiprt)
Upstream bug: https://github.com/ROCm/clr/issues/148
Backports commit: https://github.com/ROCm/clr/commit/8fcaa1ca938bf6e57625d3fae3f80b00e86df266
--- a/rocclr/platform/commandqueue.cpp
+++ b/rocclr/platform/commandqueue.cpp
@@ -156,8 +156,6 @@ void HostQueue::finish(bool cpu_wait) {
if (IS_HIP) {
command = getLastQueuedCommand(true);
if (command == nullptr) {
- assert(GetSubmissionBatch() == nullptr &&
- "Can't claim the queue is finished with the active batch!");
return;
}
// Force blocking wait if requested. That allows to avoid a build up of unreleased CPU commands

View File

@@ -82,6 +82,7 @@ PATCHES=(
"${FILESDIR}/${PN}-6.3.0-no-isystem-usr-include.patch"
"${FILESDIR}/${PN}-6.3.0-clr-fix-libcxx.patch"
"${FILESDIR}/${PN}-6.4.1-no-glibcxx-assert.patch"
"${FILESDIR}/${PN}-6.4.1-bad-assert.patch"
)
hip_test_wrapper() {