mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-06 16:21:49 +00:00
remove CLBlast, part 1
This commit is contained in:
parent
4984c9bc16
commit
7f485e5287
24 changed files with 84 additions and 464 deletions
16
expose.cpp
16
expose.cpp
|
|
@ -23,7 +23,7 @@
|
|||
extern "C"
|
||||
{
|
||||
|
||||
std::string platformenv, deviceenv, vulkandeviceenv;
|
||||
std::string vulkandeviceenv;
|
||||
|
||||
//return val: 0=fail, 1=(original ggml, alpaca), 2=(ggmf), 3=(ggjt)
|
||||
static FileFormat file_format = FileFormat::BADFORMAT;
|
||||
|
|
@ -38,20 +38,6 @@ extern "C"
|
|||
|
||||
file_format = check_file_format(model.c_str(),&file_format_meta);
|
||||
|
||||
//first digit is whether configured, second is platform, third is devices
|
||||
int cl_parseinfo = inputs.clblast_info;
|
||||
|
||||
std::string usingclblast = "GGML_OPENCL_CONFIGURED="+std::to_string(cl_parseinfo>0?1:0);
|
||||
putenv((char*)usingclblast.c_str());
|
||||
|
||||
cl_parseinfo = cl_parseinfo%100; //keep last 2 digits
|
||||
int platform = cl_parseinfo/10;
|
||||
int devices = cl_parseinfo%10;
|
||||
platformenv = "GGML_OPENCL_PLATFORM="+std::to_string(platform);
|
||||
deviceenv = "GGML_OPENCL_DEVICE="+std::to_string(devices);
|
||||
putenv((char*)platformenv.c_str());
|
||||
putenv((char*)deviceenv.c_str());
|
||||
|
||||
std::string vulkan_info_raw = inputs.vulkan_info;
|
||||
std::string vulkan_info_str = "";
|
||||
for (size_t i = 0; i < vulkan_info_raw.length(); ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue