File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,12 @@ fedora_version=%{fedora}
9595cuda_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
108106cmake_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=""
169167export FFLAGS= ""
170168export FCFLAGS= ""
171169export LDFLAGS= ""
170+ export CC= gcc-13
171+ export CXX= g++-13
172172
173173if [ -n "$cuda_version" ] && [[ " ${cuda_supported_architectures[@]} " = ~ " ${architecture} " ]]; then
174174 install_cuda
You can’t perform that action at this time.
0 commit comments