fix format
This commit is contained in:
parent
dd519ea996
commit
31277a1a24
1 changed files with 7 additions and 7 deletions
14
llama.cpp
14
llama.cpp
|
@ -5056,13 +5056,13 @@ static int llama_model_load(const std::string & fname, llama_model & model, llam
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GGML_USE_SYCL
|
#ifdef GGML_USE_SYCL
|
||||||
if (params.split_mode == LLAMA_SPLIT_MODE_NONE) {
|
if (params.split_mode == LLAMA_SPLIT_MODE_NONE) {
|
||||||
ggml_backend_sycl_set_single_device_mode(params.main_gpu);
|
ggml_backend_sycl_set_single_device_mode(params.main_gpu);
|
||||||
//SYCL use device index (0, 1, 2) directly, uer input device id, then convert to device index.
|
//SYCL use device index (0, 1, 2) directly, uer input device id, then convert to device index.
|
||||||
params.main_gpu = ggml_backend_sycl_get_device_index(params.main_gpu);
|
params.main_gpu = ggml_backend_sycl_get_device_index(params.main_gpu);
|
||||||
} else {
|
} else {
|
||||||
ggml_backend_sycl_set_mul_device_mode();
|
ggml_backend_sycl_set_mul_device_mode();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!llm_load_tensors(
|
if (!llm_load_tensors(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue