mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
Fix make compile error in expose.cpp(?) (#44)
* fix compile error? * Update expose.cpp
This commit is contained in:
+3
-3
@@ -36,8 +36,8 @@ extern "C"
|
||||
int devices = inputs.clblast_info%10;
|
||||
std::string platformenv = "KCPP_CLBLAST_PLATFORM="+std::to_string(platform);
|
||||
std::string deviceenv = "KCPP_CLBLAST_DEVICES="+std::to_string(devices);
|
||||
putenv(platformenv.c_str());
|
||||
putenv(deviceenv.c_str());
|
||||
putenv((char*)platformenv.c_str());
|
||||
putenv((char*)deviceenv.c_str());
|
||||
|
||||
if(file_format==FileFormat::GPTJ_1 || file_format==FileFormat::GPTJ_2 || file_format==FileFormat::GPTJ_3)
|
||||
{
|
||||
@@ -103,4 +103,4 @@ extern "C"
|
||||
return llama_generate(inputs, output);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user