Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d5ec7303
Unverified
Commit
d5ec7303
authored
Jan 03, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 03, 2024
Browse files
Merge pull request #1779 from dhiltgen/refined_amd_gpu_list
Improve maintainability of Radeon card list
parents
8bed487a
16f4603b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
llm/llama.cpp/gen_linux.sh
llm/llama.cpp/gen_linux.sh
+23
-1
No files found.
llm/llama.cpp/gen_linux.sh
View file @
d5ec7303
...
@@ -16,6 +16,28 @@
...
@@ -16,6 +16,28 @@
set
-ex
set
-ex
set
-o
pipefail
set
-o
pipefail
# See https://llvm.org/docs/AMDGPUUsage.html#processors for reference
amdGPUs
()
{
GPU_LIST
=(
"gfx803"
"gfx900"
"gfx906:xnack-"
"gfx908:xnack-"
"gfx90a:xnack+"
"gfx90a:xnack-"
"gfx1010"
"gfx1012"
"gfx1030"
"gfx1100"
"gfx1101"
"gfx1102"
)
(
IFS
=
$';'
echo
"'
${
GPU_LIST
[*]
}
'"
)
}
echo
"Starting linux generate script"
echo
"Starting linux generate script"
if
[
-z
"
${
CUDACXX
}
"
-a
-x
/usr/local/cuda/bin/nvcc
]
;
then
if
[
-z
"
${
CUDACXX
}
"
-a
-x
/usr/local/cuda/bin/nvcc
]
;
then
export
CUDACXX
=
/usr/local/cuda/bin/nvcc
export
CUDACXX
=
/usr/local/cuda/bin/nvcc
...
@@ -75,7 +97,7 @@ fi
...
@@ -75,7 +97,7 @@ fi
if
[
-d
"
${
ROCM_PATH
}
"
]
;
then
if
[
-d
"
${
ROCM_PATH
}
"
]
;
then
echo
"ROCm libraries detected - building dynamic ROCm library"
echo
"ROCm libraries detected - building dynamic ROCm library"
init_vars
init_vars
CMAKE_DEFS
=
"
${
COMMON_CMAKE_DEFS
}
${
CMAKE_DEFS
}
-DLLAMA_HIPBLAS=on -DCMAKE_C_COMPILER=
$ROCM_PATH
/llvm/bin/clang -DCMAKE_CXX_COMPILER=
$ROCM_PATH
/llvm/bin/clang++ -DAMDGPU_TARGETS=
'gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102' -DGPU_TARGETS='gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102'
"
CMAKE_DEFS
=
"
${
COMMON_CMAKE_DEFS
}
${
CMAKE_DEFS
}
-DLLAMA_HIPBLAS=on -DCMAKE_C_COMPILER=
$ROCM_PATH
/llvm/bin/clang -DCMAKE_CXX_COMPILER=
$ROCM_PATH
/llvm/bin/clang++ -DAMDGPU_TARGETS=
$(
amdGPUs
)
-DGPU_TARGETS=
$(
amdGPUs
)
"
BUILD_DIR
=
"gguf/build/linux/rocm"
BUILD_DIR
=
"gguf/build/linux/rocm"
build
build
install
install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment