Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
EAPI=8 |
4 |
EAPI=8 |
5 |
|
5 |
|
6 |
inherit cmake |
6 |
ROCM_VERSION="6.3" |
|
|
7 |
|
8 |
inherit cmake rocm |
7 |
|
9 |
|
8 |
if [[ "${PV}" != "9999" ]]; then |
10 |
if [[ "${PV}" != "9999" ]]; then |
9 |
KEYWORDS="~amd64" |
11 |
KEYWORDS="~amd64" |
Lines 21-35
Link Here
|
21 |
LICENSE="MIT" |
23 |
LICENSE="MIT" |
22 |
SLOT="0" |
24 |
SLOT="0" |
23 |
CPU_FLAGS_X86=( avx avx2 f16c ) |
25 |
CPU_FLAGS_X86=( avx avx2 f16c ) |
24 |
IUSE="curl openblas blis" |
26 |
IUSE="curl openblas blis hip" |
25 |
REQUIRED_USE="?? ( openblas blis )" |
27 |
REQUIRED_USE="?? ( openblas blis )" |
26 |
|
28 |
|
|
|
29 |
AMDGPU_TARGETS_COMPAT=( |
30 |
gfx900 |
31 |
gfx90c |
32 |
gfx902 |
33 |
gfx1010 |
34 |
gfx1011 |
35 |
gfx1012 |
36 |
gfx1030 |
37 |
gfx1031 |
38 |
gfx1032 |
39 |
gfx1034 |
40 |
gfx1035 |
41 |
gfx1036 |
42 |
gfx1100 |
43 |
gfx1101 |
44 |
gfx1102 |
45 |
gfx1103 |
46 |
gfx1150 |
47 |
gfx1151 |
48 |
) |
49 |
|
27 |
# curl is needed for pulling models from huggingface |
50 |
# curl is needed for pulling models from huggingface |
28 |
# numpy is used by convert_hf_to_gguf.py |
51 |
# numpy is used by convert_hf_to_gguf.py |
29 |
DEPEND=" |
52 |
DEPEND=" |
30 |
curl? ( net-misc/curl:= ) |
53 |
curl? ( net-misc/curl:= ) |
31 |
openblas? ( sci-libs/openblas:= ) |
54 |
openblas? ( sci-libs/openblas:= ) |
32 |
blis? ( sci-libs/blis:= ) |
55 |
blis? ( sci-libs/blis:= ) |
|
|
56 |
hip? ( >=dev-util/hip-6.3:= ) |
33 |
" |
57 |
" |
34 |
RDEPEND="${DEPEND} |
58 |
RDEPEND="${DEPEND} |
35 |
dev-python/numpy |
59 |
dev-python/numpy |
Lines 58-62
Link Here
|
58 |
) |
82 |
) |
59 |
fi |
83 |
fi |
60 |
|
84 |
|
|
|
85 |
if use hip; then |
86 |
rocm_use_hipcc |
87 |
mycmakeargs+=( |
88 |
-DGGML_HIP=ON -DAMDGPU_TARGETS=$(get_amdgpu_flags) |
89 |
) |
90 |
fi |
91 |
|
61 |
cmake_src_configure |
92 |
cmake_src_configure |
62 |
} |
93 |
} |