Skip to content

Commit

Permalink
remove not-needed environment flags
Browse files Browse the repository at this point in the history
  • Loading branch information
amakropoulos committed Mar 13, 2024
1 parent ee8cc98 commit b1fd49c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Runtime/LLM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,8 @@ private void RunServerCommand(string exe, string args)
{
string binary = exe;
string arguments = args;

List<(string, string)> environment = null;
if (Application.platform == RuntimePlatform.LinuxEditor || Application.platform == RuntimePlatform.LinuxPlayer)
{
if (numGPULayers <= 0)
{
// prevent nvcc building if not using GPU
environment = new List<(string, string)> { ("PATH", ""), ("CUDA_PATH", "") };
}
// use APE binary directly if on Linux
arguments = $"{EscapeSpaces(binary)} {arguments}";
binary = SelectApeBinary();
Expand All @@ -274,7 +267,7 @@ private void RunServerCommand(string exe, string args)
binary = "sh";
}
Debug.Log($"Server command: {binary} {arguments}");
process = LLMUnitySetup.CreateProcess(binary, arguments, CheckIfListening, ProcessError, ProcessExited, environment);
process = LLMUnitySetup.CreateProcess(binary, arguments, CheckIfListening, ProcessError, ProcessExited);
}

private async Task StartLLMServer()
Expand Down

0 comments on commit b1fd49c

Please sign in to comment.