Skip to content

Commit ce8b05c

Browse files
authored
Merge pull request #931 from LSXAxeller/master
Fix: Increase Vulkan detection timeout to 12 seconds
2 parents c9a9b75 + 6df1b09 commit ce8b05c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

LLama/Native/Load/SystemInfo.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ public static SystemInfo Get()
8484
CreateNoWindow = true
8585
}
8686
};
87-
var (exitCode, output, error, ok) = process.SafeRun(TimeSpan.FromSeconds(1));
87+
var (exitCode, output, error, ok) = process.SafeRun(TimeSpan.FromSeconds(12));
8888

89-
if (!ok)
90-
return null;
91-
92-
// Return the output
93-
return output;
89+
// If ok return the output else return null
90+
return ok ? output :
91+
null;
9492
}
9593
catch
9694
{

0 commit comments

Comments
 (0)