mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
sci-ml/ggml: add 0.29.0, drop 0.28.0-r2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST ggml-0.28.0.tar.gz 4415832 BLAKE2B 4f8c8a0d5a61dbbd28758fb26245c172e7917b91f493be3f177c3c254fd5d7c0306b52151a26854d13ff1313bf3b2a5e51356b6b8a7505ed43a4aeb3d84faf6d SHA512 0bc6f3f39af912dcbafb4fded7e6c5f58a3e9257fe85e6bc9e864ac32b69ae56482f990729c094ec6885387ab4da88ef4c42aa79ff7bad191b28b0e5b51f2c38
|
||||
DIST ggml-0.29.0.tar.gz 4599304 BLAKE2B 3c84566eb51ae5027727bd7c345edd0305fc4e219ddefbb3e4f38ca3d71c8defa443ce95c9a42d4894fcef66a0345026fb57208c3329851549745b81fff57109 SHA512 4bf83e4f3f20b364003f74d16f97aed14bdc2af609d7b9980db90b415290eff6d90e5db85c72b1f3a4715647216fdac7fc41990593d8d02d48a5d0c7c0327c68
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
Fix build with LLVM 23
|
||||
|
||||
Since https://github.com/llvm/llvm-project/pull/176033 (LLVM 23), AMDGPU
|
||||
builtins take ext_vector_type operands, which allow no implicit conversion
|
||||
between element types. Older clang (e. g. 22 in ROCm 7.x) accepts both.
|
||||
|
||||
This is a short version of https://github.com/ggml-org/llama.cpp/pull/29536,
|
||||
which also adds CDNA fix.
|
||||
--- a/src/ggml-cuda/mma.cuh
|
||||
+++ b/src/ggml-cuda/mma.cuh
|
||||
@@ -1409,14 +1409,14 @@ namespace ggml_cuda_mma {
|
||||
tile<16, 16, float, dl_d> & D, const tile<16, 8, nv_bfloat162, dl_ab> & A, const tile<16, 8, nv_bfloat162, dl_ab> & B) {
|
||||
#if defined(AMD_WMMA_AVAILABLE)
|
||||
#if defined(RDNA4)
|
||||
- using bf16x8_t = __attribute__((ext_vector_type(8))) __bf16;
|
||||
+ using bf16x8_t = __attribute__((ext_vector_type(8))) short;
|
||||
using floatx8_t = __attribute__((ext_vector_type(8))) float;
|
||||
floatx8_t& acc_frag = reinterpret_cast<floatx8_t&>(D.x[0]);
|
||||
const bf16x8_t& a_frag = reinterpret_cast<const bf16x8_t&>(A.x[0]);
|
||||
const bf16x8_t& b_frag = reinterpret_cast<const bf16x8_t&>(B.x[0]);
|
||||
acc_frag = __builtin_amdgcn_wmma_f32_16x16x16_bf16_w32_gfx12(a_frag, b_frag, acc_frag);
|
||||
#elif defined(RDNA3)
|
||||
- using bf16x16_t = __attribute__((ext_vector_type(16))) __bf16;
|
||||
+ using bf16x16_t = __attribute__((ext_vector_type(16))) short;
|
||||
using floatx8_t = __attribute__((ext_vector_type(8))) float;
|
||||
floatx8_t& acc_frag = reinterpret_cast<floatx8_t&>(D.x[0]);
|
||||
const bf16x16_t& a_frag = reinterpret_cast<const bf16x16_t&>(A.x[0]);
|
||||
@@ -1430,14 +1430,14 @@ namespace ggml_cuda_mma {
|
||||
using floatx4_t = __attribute__((ext_vector_type(4))) float;
|
||||
floatx4_t& acc_frag = reinterpret_cast<floatx4_t&>(D.x[0]);
|
||||
#if defined(CDNA4) || defined(CDNA3) || defined(CDNA2)
|
||||
- using bf16x4_t = __attribute__((ext_vector_type(4))) __bf16;
|
||||
+ using bf16x4_t = __attribute__((ext_vector_type(4))) short;
|
||||
const bf16x4_t& a_frag = reinterpret_cast<const bf16x4_t&>(A.x[0]);
|
||||
const bf16x4_t& b_frag = reinterpret_cast<const bf16x4_t&>(B.x[0]);
|
||||
acc_frag = __builtin_amdgcn_mfma_f32_16x16x16bf16_1k(a_frag, b_frag, acc_frag, 0, 0, 0);
|
||||
#elif defined(CDNA1)
|
||||
#pragma unroll
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
- using bf16x2_t = __attribute__((ext_vector_type(2))) __bf16;
|
||||
+ using bf16x2_t = __attribute__((ext_vector_type(2))) short;
|
||||
const bf16x2_t& a_frag = reinterpret_cast<const bf16x2_t&>(A.x[i]);
|
||||
const bf16x2_t& b_frag = reinterpret_cast<const bf16x2_t&>(B.x[i]);
|
||||
acc_frag = __builtin_amdgcn_mfma_f32_16x16x8bf16(a_frag, b_frag, acc_frag, 0, 0, 0);
|
||||
@@ -67,7 +67,7 @@ BDEPEND="
|
||||
DOCS=( AUTHORS CONTRIBUTING.md docs/gguf.md README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-llvm-23.patch
|
||||
"${FILESDIR}"/${PN}-0.28.0-llvm-23.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
Reference in New Issue
Block a user