From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D455015800F for ; Thu, 2 Feb 2023 12:54:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B70ECE0AF7; Thu, 2 Feb 2023 12:54:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D154E0AF7 for ; Thu, 2 Feb 2023 12:54:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBFEE33E830 for ; Thu, 2 Feb 2023 12:54:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 16E78807 for ; Thu, 2 Feb 2023 12:54:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1675342383.ff5673d31363d797f1e40afa8038b9a9fa4c56c1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-comgr/files/, dev-libs/rocm-comgr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fix-tests.patch dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild X-VCS-Directories: dev-libs/rocm-comgr/files/ dev-libs/rocm-comgr/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ff5673d31363d797f1e40afa8038b9a9fa4c56c1 X-VCS-Branch: master Date: Thu, 2 Feb 2023 12:54:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0be6dc27-b3af-4f09-a7ca-4c00074d8aed X-Archives-Hash: 5f15199a3840fd8c2193e632d8effb1d commit: ff5673d31363d797f1e40afa8038b9a9fa4c56c1 Author: Yiyang Wu gmail com> AuthorDate: Fri Jan 27 05:37:34 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 2 12:53:03 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff5673d3 dev-libs/rocm-comgr: enable tests Includes a patch that fixes the failed test due to unsupported feature of vanilla llvm, which is a better approach compares to https://src.fedoraproject.org/rpms/rocm-compilersupport/c/84acb10b0c831e674a4d01e677a51d7c672d2f43?branch=rawhide 100% tests passed, 0 tests failed out of 29 Total Test time (real) = 7.45 sec * Tests succeeded. Bug: https://bugs.gentoo.org/836475 Signed-off-by: Yiyang Wu gmail.com> Signed-off-by: Sam James gentoo.org> .../rocm-comgr/files/rocm-comgr-5.3.3-fix-tests.patch | 17 +++++++++++++++++ dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild | 4 ++++ 2 files changed, 21 insertions(+) diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fix-tests.patch b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fix-tests.patch new file mode 100644 index 000000000000..08a40460c762 --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fix-tests.patch @@ -0,0 +1,17 @@ +Vanilla LLVM does not support calling AMDGPU_KERNEL across different sources/bitcodes. +Without this patch https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/issues/45 occurs. +Reference: https://github.com/llvm/llvm-project/issues/60313 +=================================================================== +--- comgr.orig/test/source1.cl ++++ comgr/test/source1.cl +@@ -35,7 +35,9 @@ + + #include "include-a.h" + ++void kernel source3(__global int *j) { *j = FOO; } ++ + void kernel source1(__global int *j) { + *j += 2; +- source2(j); ++ source3(j); + } diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild index 0215adeaba17..c00adc6c1727 100644 --- a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild +++ b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild @@ -17,6 +17,9 @@ else KEYWORDS="~amd64" fi +IUSE="test" +RESTRICT="!test? ( test )" + PATCHES=( "${FILESDIR}/${PN}-5.1.3-clang-fix-include.patch" "${FILESDIR}/${PN}-5.1.3-rocm-path.patch" @@ -24,6 +27,7 @@ PATCHES=( "${FILESDIR}/0001-Specify-clang-exe-path-in-Driver-Creation.patch" "${FILESDIR}/0001-Find-CLANG_RESOURCE_DIR-using-clang-print-resource-d.patch" "${FILESDIR}/${PN}-5.3.3-HIPIncludePath-not-needed.patch" + "${FILESDIR}/${PN}-5.3.3-fix-tests.patch" ) DESCRIPTION="Radeon Open Compute Code Object Manager"