fix msvc build

This commit is contained in:
slaren 2023-08-15 22:55:05 +02:00
parent 7ec6158eec
commit 6597d61ad7

View file

@ -372,11 +372,11 @@ static bool ggml_cpu_has_metal() {
struct backend_params { struct backend_params {
std::string build_commit = BUILD_COMMIT; std::string build_commit = BUILD_COMMIT;
int build_number = BUILD_NUMBER; int build_number = BUILD_NUMBER;
bool cuda = ggml_cpu_has_cublas(); bool cuda = !!ggml_cpu_has_cublas();
bool opencl = ggml_cpu_has_clblast(); bool opencl = !!ggml_cpu_has_clblast();
bool metal = ggml_cpu_has_metal(); bool metal = !!ggml_cpu_has_metal();
bool gpu_blas = ggml_cpu_has_gpublas(); bool gpu_blas = !!ggml_cpu_has_gpublas();
bool blas = ggml_cpu_has_blas(); bool blas = !!ggml_cpu_has_blas();
int n_batch; int n_batch;
int n_threads; int n_threads;
int n_gpu_layers; int n_gpu_layers;