...
This commit is contained in:
parent
c5301174e6
commit
1c6eee6aac
@ -114,10 +114,10 @@ object LlamaServerManager {
|
|||||||
val pb = ProcessBuilder(command)
|
val pb = ProcessBuilder(command)
|
||||||
|
|
||||||
// 2. 윈도우 Vulkan 환경 변수 설정
|
// 2. 윈도우 Vulkan 환경 변수 설정
|
||||||
if (isWin && binPath.contains("win-x64")) {
|
if (isWin && binPath.endsWith("win-x64")) {
|
||||||
val env = pb.environment()
|
val env = pb.environment()
|
||||||
// 특정 GPU 선택 (내장 GPU가 여러 개일 경우)
|
// 특정 GPU 선택 (내장 GPU가 여러 개일 경우)
|
||||||
// env["GGML_VULKAN_DEVICE"] = "0"
|
env["GGML_VULKAN_DEVICE"] = "0"
|
||||||
|
|
||||||
// DLL 로드 경로 강제 지정 (bin 폴더 내 dll 참조)
|
// DLL 로드 경로 강제 지정 (bin 폴더 내 dll 참조)
|
||||||
val libraryPath = File(binPath).parentFile.absolutePath
|
val libraryPath = File(binPath).parentFile.absolutePath
|
||||||
@ -140,7 +140,11 @@ object LlamaServerManager {
|
|||||||
println(status) // 콘솔 로그
|
println(status) // 콘솔 로그
|
||||||
TradingLogStore.addAnalyzer("System", "Port:$port", status, status.contains("✅"))
|
TradingLogStore.addAnalyzer("System", "Port:$port", status, status.contains("✅"))
|
||||||
}
|
}
|
||||||
|
Thread {
|
||||||
|
process.errorStream.bufferedReader().use { reader ->
|
||||||
|
reader.lines().forEach { line -> println("[SERVER ERROR] $line") }
|
||||||
|
}
|
||||||
|
}.start()
|
||||||
val reader = BufferedReader(InputStreamReader(process.inputStream))
|
val reader = BufferedReader(InputStreamReader(process.inputStream))
|
||||||
var line: String?
|
var line: String?
|
||||||
while (reader.readLine().also { line = it } != null) {
|
while (reader.readLine().also { line = it } != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user