mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2025-09-15 13:28:35 +08:00
Compare commits
3 Commits
922dd0c9dc
...
e343c389e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e343c389e8 | ||
|
|
edea8a9c3c | ||
|
|
499f6aaf90 |
@ -13,6 +13,19 @@
|
||||
#ifndef GGML_SYCL_COMMON_HPP
|
||||
#define GGML_SYCL_COMMON_HPP
|
||||
|
||||
// ─── Fix: Undefine math macros before SYCL includes ───────────────────
|
||||
#undef isnan
|
||||
#undef isinf
|
||||
#undef isfinite
|
||||
#undef signbit
|
||||
#undef isgreater
|
||||
#undef isgreaterequal
|
||||
#undef isless
|
||||
#undef islessequal
|
||||
#undef islessgreater
|
||||
#undef isunordered
|
||||
// ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
#include <cstddef>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
@ -119,12 +119,12 @@ fi
|
||||
|
||||
if [ -x "$(command -v wget2)" ]; then
|
||||
wget2 --no-config --progress bar -O ggml-"$model".bin $src/$pfx-"$model".bin
|
||||
elif [ -x "$(command -v wget)" ]; then
|
||||
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
|
||||
elif [ -x "$(command -v curl)" ]; then
|
||||
curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin
|
||||
elif [ -x "$(command -v wget)" ]; then
|
||||
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
|
||||
else
|
||||
printf "Either wget or curl is required to download models.\n"
|
||||
printf "Either wget2, curl, or wget is required to download models.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user