Skip to content

Support for CUDA 13 #727

@norbusan

Description

@norbusan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions