Skip to content

Commit e08ecb0

Browse files
build(copr): fix build
1 parent 364ef93 commit e08ecb0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packaging/linux/fedora/Sunshine.spec

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ fedora_version=%{fedora}
9595
cuda_supported_architectures=("x86_64" "aarch64")
9696

9797
# set cuda_version based on Fedora version
98-
# these are the same right now, but leave this structure to make it easier to set different versions
99-
if [ "$fedora_version" == 39 ]; then
100-
cuda_version="12.6.2"
101-
cuda_build="560.35.03"
102-
else
103-
cuda_version="12.6.2"
104-
cuda_build="560.35.03"
105-
fi
98+
case "$fedora_version" in
99+
*)
100+
cuda_version="12.6.3"
101+
cuda_build="560.35.05"
102+
;;
103+
esac
106104

107105
# prepare CMAKE args
108106
cmake_args=(
@@ -132,7 +130,7 @@ function install_cuda() {
132130

133131
if [ "$fedora_version" -ge 40 ]; then
134132
# update environment variables for CUDA, necessary when using cuda-gcc-c++
135-
export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/cuda'
133+
export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-13'
136134
export PATH=/usr/bin/cuda:"%{_builddir}/cuda/bin:${PATH}"
137135
export LD_LIBRARY_PATH="%{_builddir}/cuda/lib64:${LD_LIBRARY_PATH}"
138136
fi
@@ -169,6 +167,8 @@ export CXXFLAGS=""
169167
export FFLAGS=""
170168
export FCFLAGS=""
171169
export LDFLAGS=""
170+
export CC=gcc-13
171+
export CXX=g++-13
172172

173173
if [ -n "$cuda_version" ] && [[ " ${cuda_supported_architectures[@]} " =~ " ${architecture} " ]]; then
174174
install_cuda

0 commit comments

Comments
 (0)