From 6350e2e8b21db73d31f94cb93bab55f3dda4d065 Mon Sep 17 00:00:00 2001 From: Mauro Druwel Date: Sun, 24 Mar 2024 14:58:21 +0100 Subject: [PATCH 1/2] User input avx version --- install.bat | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index 4c4ffe085..629ae2412 100644 --- a/install.bat +++ b/install.bat @@ -7,10 +7,18 @@ if exist "%APPDATA%\nitro" ( rmdir /S /Q "%APPDATA%\nitro" ) - :: Parse arguments set "VERSION=latest" set "GPU=false" +set "AVX=-avx2" + +echo Please enter the AVX version you want (avx, avx2, avx512) or leave blank for default (avx2): +set /p USER_AVX= + +if not "%USER_AVX%"=="" ( + set "AVX=-%USER_AVX%" +) + :arg_loop if "%~1"=="" goto arg_loop_end if "%~1"=="--gpu" ( @@ -37,7 +45,7 @@ if "%VERSION%"=="latest" ( ) :: Construct the download URL -set "URL=https://github.com/janhq/nitro/releases/download/v%VERSION%/nitro-%VERSION%-win-amd64" +set "URL=https://github.com/janhq/nitro/releases/download/v%VERSION%/nitro-%VERSION%-win-amd64%AVX%" if "%GPU%"=="true" ( :: If --gpu option is provided, append -cuda to the URL set "URL=%URL%-cuda" From e9704b8784ae02394da06e168a29053d09ee24dc Mon Sep 17 00:00:00 2001 From: Mauro Druwel Date: Sun, 24 Mar 2024 15:00:06 +0100 Subject: [PATCH 2/2] Update AVX version prompt message --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 629ae2412..919204b60 100644 --- a/install.bat +++ b/install.bat @@ -12,7 +12,7 @@ set "VERSION=latest" set "GPU=false" set "AVX=-avx2" -echo Please enter the AVX version you want (avx, avx2, avx512) or leave blank for default (avx2): +echo Please specify the desired AVX version (avx, avx2, avx512), or leave it blank to use the default version (avx2): set /p USER_AVX= if not "%USER_AVX%"=="" (