mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
allow selecting multigpu on vulkan
This commit is contained in:
parent
3e4c44bace
commit
813cf829b5
5 changed files with 53 additions and 24 deletions
|
@ -68,14 +68,12 @@ extern "C"
|
|||
vulkan_info_str += ",";
|
||||
}
|
||||
}
|
||||
if(vulkan_info_str=="")
|
||||
if(vulkan_info_str!="")
|
||||
{
|
||||
vulkan_info_str = "0";
|
||||
vulkandeviceenv = "GGML_VK_VISIBLE_DEVICES="+vulkan_info_str;
|
||||
putenv((char*)vulkandeviceenv.c_str());
|
||||
}
|
||||
|
||||
vulkandeviceenv = "GGML_VK_VISIBLE_DEVICES="+vulkan_info_str;
|
||||
putenv((char*)vulkandeviceenv.c_str());
|
||||
|
||||
executable_path = inputs.executable_path;
|
||||
|
||||
if(file_format==FileFormat::GPTJ_1 || file_format==FileFormat::GPTJ_2 || file_format==FileFormat::GPTJ_3 || file_format==FileFormat::GPTJ_4 || file_format==FileFormat::GPTJ_5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue