diff --git a/.github/workflows/kcpp-build-release-win-full.yaml b/.github/workflows/kcpp-build-release-win-full.yaml index 43c5f3b1c..526b1b9c6 100644 --- a/.github/workflows/kcpp-build-release-win-full.yaml +++ b/.github/workflows/kcpp-build-release-win-full.yaml @@ -13,7 +13,7 @@ env: jobs: windows: - runs-on: windows-2019 + runs-on: windows-2022 steps: - name: Clone id: checkout @@ -64,12 +64,14 @@ jobs: cuda: '11.4.4' use-github-cache: false - - name: Build CUDA + - name: Build CUDA with Visual Studio 2019 id: cmake_build + shell: cmd run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" mkdir build cd build - cmake .. -DLLAMA_CUBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0" + cmake .. -G "Visual Studio 16 2019" -A x64 -DLLAMA_CUBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0" cmake --build . --config Release -j 2 cd .. diff --git a/CMakeLists.txt b/CMakeLists.txt index 4abe93436..614efc7ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,8 +79,6 @@ set(GGML_V2_LEGACY_CUDA_SOURCES otherarch/ggml_v2-cuda-legacy.cu otherarch/ggml_ if (LLAMA_CUBLAS) - cmake_minimum_required(VERSION 3.17) - find_package(CUDAToolkit) if (CUDAToolkit_FOUND) message(STATUS "cuBLAS found")