mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-13 05:48:40 +00:00
Rocm Backend: Fix regex for detecting version in Linux
This commit is contained in:
parent
e2f4061199
commit
5b0760c9fd
@ -82,7 +82,7 @@ public partial class RocmBackend : IBackend
|
|||||||
[GeneratedRegex(@".*?\\(?<version>\d+.\d*)\\")]
|
[GeneratedRegex(@".*?\\(?<version>\d+.\d*)\\")]
|
||||||
private static partial Regex GetWindowsVersionRegex();
|
private static partial Regex GetWindowsVersionRegex();
|
||||||
|
|
||||||
[GeneratedRegex(@"HIP_PATH\s*:\s*[\w\/]+-(?<version>[\d.]+)$")]
|
[GeneratedRegex(@"HIP version\s*:\s*(?<version>[\d.]+(?:-\w+)?)")]
|
||||||
private static partial Regex GetLinuxVersionRegex();
|
private static partial Regex GetLinuxVersionRegex();
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user