Skip to content

Commit

Permalink
build(copr): use cuda-gcc-c++
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Oct 6, 2024
1 parent d8111ef commit 6ec3ca9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packaging/linux/fedora/sunshine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ Source0: tarball.tar.gz

# BuildRequires: boost-devel >= 1.86.0
BuildRequires: cmake >= 3.25.0
BuildRequires: cuda-gcc-c++
BuildRequires: gcc
BuildRequires: gcc-c++
# BuildRequires: gcc-c++
BuildRequires: libayatana-appindicator3-devel
BuildRequires: libcap-devel
BuildRequires: libcurl-devel
Expand Down Expand Up @@ -95,8 +96,8 @@ if [ "$fedora_version" == 39 ]; then
cuda_version="12.4.0"
cuda_build="550.54.14"
else
cuda_version=
cuda_build=
cuda_version="12.4.0"
cuda_build="550.54.14"
fi

# prepare CMAKE args
Expand Down Expand Up @@ -166,6 +167,7 @@ if [ -n "$cuda_version" ] && [[ " ${cuda_supported_architectures[@]} " =~ " ${ar
install_cuda
cmake_args+=("-DSUNSHINE_ENABLE_CUDA=ON")
cmake_args+=("-DCMAKE_CUDA_COMPILER:PATH=%{_builddir}/cuda/bin/nvcc")
export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/cuda'
fi

# cmake
Expand Down

0 comments on commit 6ec3ca9

Please sign in to comment.