[gentoo-dev] [PATCH 3/3] rocm.eclass: add rocm_use_clang and strip flags in a better way

2025-06-22 Thread Sv. Lockal
incompatible CXXFLAGS new test-flags-HIPCXX function is used. Bug: https://bugs.gentoo.org/957893 Signed-off-by: Sv. Lockal --- eclass/rocm.eclass | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass index 65726a0bc621

[gentoo-dev] [PATCH 1/3] toolchain-funcs.eclass: add tc-getHIPCXX function

2025-06-22 Thread Sv. Lockal
/help/latest/envvar/HIPCXX.html [2] https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/CMakeDetermineHIPCompiler.cmake Bug: https://bugs.gentoo.org/957893 Signed-off-by: Sv. Lockal --- eclass/toolchain-funcs.eclass | 4 1 file changed, 4 insertions(+) diff --git a/eclass/toolchain

[gentoo-dev] [PATCH 2/3] flag-o-matic.eclass: Add functions for testing/stripping HIPFLAGS

2025-06-22 Thread Sv. Lockal
flags. [1] https://cmake.org/cmake/help/latest/envvar/HIPFLAGS.html [2] https://rocm.docs.amd.com/en/latest/conceptual/cmake-packages.html#using-the-hip-single-source-programming-model Bug: https://bugs.gentoo.org/957893 Signed-off-by: Sv. Lockal --- eclass/flag-o-matic.eclass | 26

[gentoo-dev] Re: [PATCH] rocm.eclass: add rocm_use_hipcc function and update example accordingly

2024-08-17 Thread Sv. Lockal
ler can compile a simple test program. export CC=hipcc CXX=hipcc strip-unsupported-flags } On Sun, Aug 4, 2024 at 5:09 AM Sv. Lockal wrote: > > This adds a new function rocm_use_hipcc in rocm.eclass to be used in > every src_configure, where the compiler is switched to hipcc

[gentoo-dev] [PATCH] rocm.eclass: add rocm_use_hipcc function and update example accordingly

2024-08-03 Thread Sv. Lockal
This adds a new function rocm_use_hipcc in rocm.eclass to be used in every src_configure, where the compiler is switched to hipcc (a. k. a. clang with extra flags). Github pull request: https://github.com/gentoo/gentoo/pull/37639 Bug: https://bugs.gentoo.org/936099 Signed-off-by: Sv. Lockal