NVEnc
NVEnc copied to clipboard
Support for CUDA 13
Hi
いつもお世話になっております!Archのパケジャーです。
Current nvenc does not compile with CUDA 13.
One part is that several cuda archs are not supported anymore (anything below 75), so we would need:
--- NVEnc/configure.old 2025-09-29 16:15:42.502292200 +0200
+++ NVEnc/configure 2025-09-29 16:16:25.327507014 +0200
@@ -399,8 +399,10 @@
if [ $CUDA_VER_MAJOR -le 10 ]; then
GPU_CODE_GEN="--generate-code arch=compute_30,code=[compute_30,sm_30]"
fi
-GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_50,code=[compute_50,sm_50]"
-GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_61,code=[compute_61,sm_61]"
+if [ $CUDA_VER_MAJOR -lt 13 ]; then
+ GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_50,code=[compute_50,sm_50]"
+ GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_61,code=[compute_61,sm_61]"
+fi
GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_75,code=[compute_75,sm_75]"
if ( [ $CUDA_VER_MAJOR -ge 11 ] && [ $CUDA_VER_MINOR -ge 1 ] ) || [ $CUDA_VER_MAJOR -ge 12 ]; then
GPU_CODE_GEN="${GPU_CODE_GEN} --generate-code arch=compute_86,code=[compute_86,sm_86]"
But even with that, it fails to compile with various undefined refs like
./NVEncSDK/Common/inc/helper_cuda.h(853): error: class "cudaDeviceProp" has no member "computeMode"
if (deviceProp.computeMode != cudaComputeModeProhibited)
^
Just FYI.
Best regards
Norbert
thank you for letting me know the issue with CUDA 13.
Actually, CUDA 13 build had various problems, now commits up to 65c7962e shall allow to build with CUDA 13.
Thanks for the quick answer and support for CUDA 13. I will wait for the next release and package it for Arch AUR. All best best Norbert