diff --git a/.github/workflows/tests-rocm-windows.yml b/.github/workflows/tests-rocm-windows.yml index edb73a48ad406..a72bb0f310641 100644 --- a/.github/workflows/tests-rocm-windows.yml +++ b/.github/workflows/tests-rocm-windows.yml @@ -80,10 +80,13 @@ jobs: Get-Location cmake --version clang --version - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLAMA_HIPBLAS=ON -DHIP_PLATFORM=amd -DCMAKE_C_COMPILER="C:\Program Files\AMD\ROCm\5.7\bin\clang.exe" -DCMAKE_CXX_COMPILER="C:\Program Files\AMD\ROCm\5.7\bin\clang++.exe" -DAMDGPU_TARGETS="gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1010;gfx1030;gfx1031;gfx1032;gfx1100;gfx1101;gfx1102" - cmake --build . --config RelWithDebInfo -j ${env:NUMBER_OF_PROCESSORS} + cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAMA_HIPBLAS=ON -DHIP_PLATFORM=amd -DCMAKE_C_COMPILER="C:\Program Files\AMD\ROCm\5.7\bin\clang.exe" -DCMAKE_CXX_COMPILER="C:\Program Files\AMD\ROCm\5.7\bin\clang++.exe" -DAMDGPU_TARGETS="gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1010;gfx1030;gfx1031;gfx1032;gfx1100;gfx1101;gfx1102" + cmake --build . --config Release -j ${env:NUMBER_OF_PROCESSORS} # $env:CC = 'C:\Program Files\AMD\ROCm\5.7\bin\clang.exe' # $env:CXX = 'C:\Program Files\AMD\ROCm\5.7\bin\clang++.exe' + +# cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAMA_HIPBLAS=ON -DHIP_PLATFORM=amd -DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe" -DAMDGPU_TARGETS="gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1010;gfx1030;gfx1031;gfx1032;gfx1100;gfx1101;gfx1102" + # cmake .. -DLLAMA_HIPBLAS=ON -DCMAKE_SYSTEM_VERSION="10.0.19041.0" -DCMAKE_C_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang++.exe" -DAMDGPU_TARGETS="gfx803;gfx900;gfx906;gfx908;gfx90a;gfx1010;gfx1030;gfx1031;gfx1032;gfx1100;gfx1101;gfx1102" diff --git a/CMakeLists.txt b/CMakeLists.txt index c5810037551d0..cc7649039080f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,8 +12,8 @@ project("llama.cpp" C CXX) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1) -set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type" FORCE) -set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "RelWithDebInfo") +set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) +set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(LLAMA_STANDALONE ON) set(BUILD_SHARED_LIBS_DEFAULT ON)