Skip to content

Commit

Permalink
Let nvc++ ignore unknown compiler switches
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Oct 31, 2022
1 parent 814c580 commit f164328
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,19 @@ jobs:
if [ ${{ matrix.install_oneapi }} ]; then source /opt/intel/oneapi/setvars.sh; fi
mkdir build
cd build
CUDACXX=(`echo /usr/local/cuda-*/bin/nvcc`)
if [ ! -f $CUDACXX ]; then
unset CUDACXX
fi
echo "nvcc is here: $CUDACXX"
NVHPC_FLAGS=
if [ ${{ matrix.add_nvcpp_repo }} ]; then
# cmake (in some versions) passes some flags that nvc++ does not understand
NVHPC_FLAGS='-noswitcherror'
fi
cmake .. -DBUILD_TESTING=ON \
-DLLAMA_BUILD_EXAMPLES=ON \
-DCMAKE_BUILD_TYPE=$CONFIG \
Expand All @@ -260,6 +268,7 @@ jobs:
-Dalpaka_CXX_STANDARD=17 \
-DCMAKE_CUDA_COMPILER=$CUDACXX \
-DCMAKE_CUDA_HOST_COMPILER=$CXX \
-DCMAKE_CXX_FLAGS=$NVHPC_FLAGS \
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
- name: build tests + examples
run: |
Expand Down

0 comments on commit f164328

Please sign in to comment.