Skip to content

Commit

Permalink
Added zm1000 as a compiler flag to the Windows build, in an attempt…
Browse files Browse the repository at this point in the history
… to workaround a compiler error caused by insufficient heap space (due to very large C++ files)
  • Loading branch information
martindevans committed Sep 22, 2024
1 parent 0db26a4 commit bdda46f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ jobs:
method: 'network'
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'

- name: "Configure"
if: runner.os == 'Windows'
run: |
echo "CMAKE_CXX_FLAGS=/Zm1000" >> $GITHUB_ENV
- uses: Jimver/[email protected]
if: runner.os == 'Linux'
id: cuda-toolkit-linux
Expand All @@ -249,6 +254,7 @@ jobs:
- name: Build
id: cmake_build
run: |
echo "CMAKE_CXX_FLAGS is $CMAKE_CXX_FLAGS"
mkdir build
cd build
cmake .. ${{ env.COMMON_DEFINE }} -DGGML_CUDA=ON
Expand Down

0 comments on commit bdda46f

Please sign in to comment.