Skip to content

Commit 1f4886b

Browse files
authored
ggml-ci: update input env variables to GG_BUILD_ (ggml-org#2879)
1 parent f11de0e commit 1f4886b

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

ci/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir tmp
2121
bash ./ci/run.sh ./tmp/results ./tmp/mnt
2222

2323
# with CUDA support
24-
GGML_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
24+
GG_BUILD_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
2525
```
2626

2727
## Environment Variables
@@ -30,12 +30,12 @@ The CI script supports several environment variables to control the build:
3030

3131
| Variable | Description |
3232
|----------|-------------|
33-
| `GGML_CUDA` | Enable NVIDIA CUDA GPU acceleration |
34-
| `GGML_SYCL` | Enable Intel SYCL acceleration |
35-
| `GGML_VULKAN` | Enable Vulkan GPU acceleration |
36-
| `GGML_METAL` | Enable Metal acceleration on Apple Silicon |
37-
| `GGML_BLAS` | Enable BLAS CPU acceleration |
38-
| `WHISPER_OPENVINO` | Enable OpenVINO support |
39-
| `WHISPER_COREML` | Enable Core ML support for Apple Neural Engine |
33+
| `GG_BUILD_CUDA` | Enable NVIDIA CUDA GPU acceleration |
34+
| `GG_BUILD_SYCL` | Enable Intel SYCL acceleration |
35+
| `GG_BUILD_VULKAN` | Enable Vulkan GPU acceleration |
36+
| `GG_BUILD_METAL` | Enable Metal acceleration on Apple Silicon |
37+
| `GG_BUILD_BLAS` | Enable BLAS CPU acceleration |
38+
| `GG_BUILD_OPENVINO` | Enable OpenVINO support |
39+
| `GG_BUILD_COREML` | Enable Core ML support for Apple Neural Engine |
4040
| `GG_BUILD_LOW_PERF` | Limit tests for low-performance hardware |
41-
| `GGML_TEST_MODELS` | Comma-separated list of models to test (e.g. "tiny.en,tiny,base,medium", defaults to all models unless `GG_BUILD_LOW_PERF` is set) |
41+
| `GG_BUILD_TEST_MODELS` | Comma-separated list of models to test (e.g. "tiny.en,tiny,base,medium", defaults to all models unless `GG_BUILD_LOW_PERF` is set) |

ci/run.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# bash ./ci/run.sh ./tmp/results ./tmp/mnt
99
#
1010
# # with CUDA support
11-
# GGML_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
11+
# GG_BUILD_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt
1212
#
1313

1414
if [ -z "$2" ]; then
@@ -36,8 +36,8 @@ BENCH_ENCODER_ONLY=0
3636
BENCH_FLASH_ATTN=0
3737

3838
# check for user-specified models first. if not specified, use fast models
39-
if [ ! -z ${GGML_TEST_MODELS} ]; then
40-
IFS=',' read -r -a MODELS <<< "${GGML_TEST_MODELS}"
39+
if [ ! -z ${GG_BUILD_TEST_MODELS} ]; then
40+
IFS=',' read -r -a MODELS <<< "${GG_BUILD_TEST_MODELS}"
4141
else
4242
if [ ! -z ${GG_BUILD_LOW_PERF} ]; then
4343
MODELS=( "tiny" "base" "small" )
@@ -48,11 +48,11 @@ fi
4848

4949
CMAKE_EXTRA="-DWHISPER_FATAL_WARNINGS=ON"
5050

51-
if [ ! -z ${GGML_CUDA} ]; then
51+
if [ ! -z ${GG_BUILD_CUDA} ]; then
5252
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native"
5353
fi
5454

55-
if [ ! -z ${GGML_SYCL} ]; then
55+
if [ ! -z ${GG_BUILD_SYCL} ]; then
5656
if [ -z ${ONEAPI_ROOT} ]; then
5757
echo "Not detected ONEAPI_ROOT, please install oneAPI base toolkit and enable it by:"
5858
echo "source /opt/intel/oneapi/setvars.sh"
@@ -62,23 +62,23 @@ if [ ! -z ${GGML_SYCL} ]; then
6262
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_SYCL_F16=ON"
6363
fi
6464

65-
if [ ! -z ${WHISPER_OPENVINO} ]; then
65+
if [ ! -z ${GG_BUILD_OPENVINO} ]; then
6666
CMAKE_EXTRA="${CMAKE_EXTRA} -DWHISPER_OPENVINO=ON"
6767
fi
6868

69-
if [ ! -z ${GGML_METAL} ]; then
69+
if [ ! -z ${GG_BUILD_METAL} ]; then
7070
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_METAL=ON"
7171
fi
7272

73-
if [ ! -z ${GGML_VULKAN} ]; then
73+
if [ ! -z ${GG_BUILD_VULKAN} ]; then
7474
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_VULKAN=ON"
7575
fi
7676

77-
if [ ! -z ${GGML_BLAS} ]; then
77+
if [ ! -z ${GG_BUILD_BLAS} ]; then
7878
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_BLAS=ON"
7979
fi
8080

81-
if [ ! -z ${WHISPER_COREML} ]; then
81+
if [ ! -z ${GG_BUILD_COREML} ]; then
8282
CMAKE_EXTRA="${CMAKE_EXTRA} -DWHISPER_COREML=ON"
8383
fi
8484

0 commit comments

Comments
 (0)