| | |
| | | set avx2_dir=%basedirname%_avx2 |
| | | set avx512_dir=%basedirname%_avx512 |
| | | set CUDA_dir=%basedirname%_CUDA |
| | | set ROCM_dir=%basedirname%_ROCM |
| | | set ISCC="C:\Program Files (x86)\Inno Setup 6\iscc.exe" |
| | | set ROCM="C:\ROCm\5.7\bin" |
| | | |
| | | :start |
| | | @ECHO OFF |
| | |
| | | |
| | | %ISCC% /O"%installers_dir%/%date%" sd.gui.wx.iss |
| | | |
| | | REM %ISCC% /O"%installers_dir%/%date%" sd.gui.wx_avx2.iss |
| | | REM %ISCC% /O"%installers_dir%/%date%" sd.gui.wx_avx512.iss |
| | | REM %ISCC% /O"%installers_dir%/%date%" sd.gui.wx_avx_CUDA.iss |
| | | set SD_GUI_VARIATION=rocm |
| | | set SD_GUI_VERSION=%SD_GUI_VERSION% |
| | | echo SD GUI version: %SD_GUI_VERSION% |
| | | echo SD GUI variation: %SD_GUI_VARIATION% |
| | | |
| | | %ISCC% /O"%installers_dir%/%date%" sd.gui.wx.iss |
| | | |
| | | pause |
| | | goto start |
| | |
| | | |
| | | git clone https://github.com/fszontagh/sd.cpp.gui.wx.git %CUDA_dir% |
| | | |
| | | |
| | | if exist %ROCM_dir%\ ( |
| | | rmdir /s /q %ROCM_dir% |
| | | ) |
| | | |
| | | git clone https://github.com/fszontagh/sd.cpp.gui.wx.git %ROCM_dir% |
| | | |
| | | cd %avx_dir% |
| | | git fetch --all |
| | | git reset --hard origin/main |
| | |
| | | git reset --hard origin/main |
| | | git pull |
| | | cd %CUDA_dir% |
| | | git fetch --all |
| | | git reset --hard origin/main |
| | | git pull |
| | | cd %ROCM_dir% |
| | | git fetch --all |
| | | git reset --hard origin/main |
| | | git pull |
| | |
| | | ) |
| | | cmake -B build/ -S . -DCMAKE_TOOLCHAIN_FILE=%vcpkg_root_dir%/scripts/buildsystems/vcpkg.cmake -DSD_CUBLAS=ON |
| | | cmake --build build/ --config Release |
| | | |
| | | cd %startdir% |
| | | |
| | | cd %ROCM_dir% |
| | | |
| | | set CC=%ROCM%\clang.exe |
| | | set CXX=%ROCM%\clang++.exe |
| | | |
| | | IF EXIST external\stable-diffusion\ ( |
| | | rmdir /s /q external\stable-diffusion |
| | | ) |
| | | IF EXIST build\ ( |
| | | rmdir /s /q build |
| | | ) |
| | | |
| | | cmake -B build/ -S . -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release |
| | | cmake --build build/ --config Release |
| | | |
| | | cd %startdir% |
| | | |
| | | goto :start |