[gentoo-dev] [PATCH 2/2] rocm.eclass: Enable ROCm 6, add gfx94{0,1,2} (MI300) support

2024-04-14 Thread Yiyang Wu
Also update the references, since the original reference does not contain MI300. The "see also" blog is also removed because it hasn't been updated for 2 years. Signed-off-by: Yiyang Wu --- eclass/rocm.eclass| 12 +++- profiles/desc/amdgpu_ta

[gentoo-dev] [PATCH 1/2] rocm.eclass: remove xnack flag for broader compatibility

2024-04-14 Thread Yiyang Wu
iv.org/abs/2401.02680 [6] https://llvm.org/docs/AMDGPUUsage.html#target-features [7] https://docs.olcf.ornl.gov/systems/crusher_quick_start_guide.html#compiling-hip-kernels-for-specific-xnack-modes [8] https://github.com/ROCm/rocFFT/commit/cd2689360ba3b3579d044d8925838ff307b4b4cf Signed-off-by:

[gentoo-dev] [PATCH 0/2] rocm.eclass: drop xnack feature flag and support ROCm 6

2024-04-14 Thread Yiyang Wu
/36254 Yiyang Wu (2): rocm.eclass: remove xnack flag for broader compatibility Enable ROCm 6, add gfx94{0,1,2} (MI300) support eclass/rocm.eclass| 31 +-- profiles/desc/amdgpu_targets.desc | 14 ++ 2 files changed, 23 insertions(+), 22

[gentoo-dev] [PATCH 2/2] profiles/desc/amdgpu_targets.desc: Fill in more GPU models

2023-11-16 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc index 77ffa43399f1..46513023c3a9 100644 --- a/profiles/desc/amdgpu_targets.desc +++ b

[gentoo-dev] [PATCH 1/2] rocm.eclass: Fix the xnack feature for gfx90a

2023-11-16 Thread Yiyang Wu
Github PR: https://github.com/gentoo/gentoo/pull/33861 [1] https://llvm.org/docs/AMDGPUUsage.html#target-features [2] https://docs.olcf.ornl.gov/systems/crusher_quick_start_guide.html#compiling-hip-kernels-for-specific-xnack-modes Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH] rocm.eclass: support RDNA3 GPU for >=5.4, remove <5

2023-01-28 Thread Yiyang Wu
lly with amdgpu_targets_gfx1100 (but not tested on real GPU). rocBLAS-5.4.2.ebuild is in https://github.com/gentoo/gentoo/pull/29319 The github PR for this patch is at https://github.com/gentoo/gentoo/pull/29320 Closes: https://bugs.gentoo.org/891499 Signed-off-by: Yiyang Wu --- eclass/rocm.ecl

[gentoo-dev] [PATCH v7 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-09-05 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 17 + 1 file changed, 17 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH v7 1/2] rocm.eclass: new eclass

2022-09-05 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://bugs.gentoo.org/810619 Bugs: https://bugs.gentoo.org/817440 Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH v7 0/2] rocm.eclass: new eclass

2022-09-05 Thread Yiyang Wu
portage user is in render group or not. I would like to print the username, so I tried use ${USER} but it is not set during src_test. Previously, I used ${PORTAGE_USERNAME} but its a potage internal variable. Is there an approach to print the portage username? Would $(whoami) suitable for this job? Y

[gentoo-dev] [PATCH v6 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-31 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 17 + 1 file changed, 17 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH v6 1/2] rocm.eclass: new eclass

2022-08-31 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://bugs.gentoo.org/810619 Bugs: https://bugs.gentoo.org/817440 Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH v6 0/2] rocm.eclass: new eclass

2022-08-31 Thread Yiyang Wu
reference of AMDGPU targets and GPU product matching. Yiyang Wu (2): rocm.eclass: new eclass profiles/desc: add amdgpu_targets.desc for USE_EXPAND eclass/rocm.eclass| 284 ++ profiles/base/make.defaults | 2 +- profiles/desc

[gentoo-dev] [PATCH v5 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-28 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH v5 1/2] rocm.eclass: new eclass

2022-08-28 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://bugs.gentoo.org/810619 Bugs: https://bugs.gentoo.org/817440 Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH v5 0/2] *** rocm.eclass: new class ***

2022-08-28 Thread Yiyang Wu
The v5 patches corrects the usage of bash array expansion on OFFICIAL_AMDGPU_TARGETS. The updated Github PR is located at https://github.com/gentoo/gentoo/pull/26784 Yiyang Wu (2): rocm.eclass: new eclass profiles/desc: add amdgpu_targets.desc for USE_EXPAND eclass/rocm.eclass

[gentoo-dev] [PATCH v4 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-27 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH v4 1/2] rocm.eclass: new eclass

2022-08-27 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://bugs.gentoo.org/810619 Bugs: https://bugs.gentoo.org/817440 Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH v4 0/2] *** rocm.eclass: new eclass ***

2022-08-27 Thread Yiyang Wu
The v4 patches fixes a bug about determining whether ${gpu_target} is in ${OFFICIAL_AMDGPU_TARGETS[*]}. Nothing else has changed, and the eclass works as expected in my experiment ebuilds on sci-libs/roc*. Yiyang Wu (2): rocm.eclass: new eclass profiles/desc: add amdgpu_targets.desc for

[gentoo-dev] [PATCH v3 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-21 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH v3 1/2] rocm.eclass: new eclass

2022-08-21 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. Closes: https://bugs.gentoo.org/810619 Bugs: https://bugs.gentoo.org/817440 Signed-off-by: Yiyang Wu --- eclass/rocm.eclass

[gentoo-dev] [PATCH v3 0/2] rocm.eclass: new eclass for ROCm packages

2022-08-21 Thread Yiyang Wu
; 5. correct quotation mark usage (which fixes ROCM_TESTS iteration); 6. use has function to test variable inside array; 7. fix typo; 8. avoid using internal portage variables; 9. disable wildcard in check_rw_permission; iterate devices to check; 10. referece bug #817440 in commit message. Yiyang Wu

[gentoo-dev] [PATCH v2 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-15 Thread Yiyang Wu
Signed-off-by: Yiyang Wu Signed-off-by: YiyangWu --- profiles/desc/amdgpu_targets.desc | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode

[gentoo-dev] [PATCH v2 1/2] rocm.eclass: new eclass

2022-08-15 Thread Yiyang Wu
thors +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: rocm.eclass +# @MAINTAINER: +# Gentoo Science Project +# @AUTHOR: +# Yiyang Wu +# @SUPPORTED_EAPIS: 7 8 +# @BLURB: Common functions and variables for ROCm packages written in HIP +# @DESCRIPTION: +# ROCm packages such a

[gentoo-dev] [PATCH v2 0/2] rocm.eclass: new eclass for ROCm packages

2022-08-15 Thread Yiyang Wu
From: YiyangWu This update fixes problems pointed out last week on rocm.eclass. Changelog from v1: 1. Change to the mordern EAPI check style; 2. fix typo in amdgpu_targets.desc; 3. remove trailing space in comments Yiyang Wu (2): rocm.eclass: new eclass profiles/desc: add

[gentoo-dev] [PATCH 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND

2022-08-08 Thread Yiyang Wu
Signed-off-by: Yiyang Wu --- profiles/desc/amdgpu_targets.desc | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 profiles/desc/amdgpu_targets.desc diff --git a/profiles/desc/amdgpu_targets.desc b/profiles/desc/amdgpu_targets.desc new file mode 100644 index

[gentoo-dev] [PATCH 1/2] rocm.eclass: new eclass

2022-08-08 Thread Yiyang Wu
Project +# @AUTHOR: +# Yiyang Wu +# @SUPPORTED_EAPIS: 7 8 +# @BLURB: Common functions and variables for ROCm packages written in HIP +# @DESCRIPTION: +# ROCm packages such as sci-libs/* can utilize functions in this eclass. +# Currently, it handles the AMDGPU_TARGETS variable via USE_EXPAND, so user

[gentoo-dev] [PATCH 0/2] rocm.eclass for ROCm packages written in HIP

2022-08-08 Thread Yiyang Wu
cupy, can also make use of this eclass, mainly specify GPU architecture and it's corresponding dependencies via USE_EXPAND. This is the core delivery in GSoC 2022 project "Refining ROCm Packages in Gentoo" Yiyang Wu (2): rocm.eclass: new eclass profiles/desc: add amdgpu_t