CUDA: Volta architecture

The Volta 7.2 architecture for Jetson Xavier NX cannot be detected by OpenCVDetectCUDA cmake script.

  • OpenCV => 4.4+
  • Operating System / Platform => Ubuntu 18 arm64
  • Compiler => gcc
set(_arch_volta “7.0”)

If the architecture 7.2 is added to the OpenCVDetectCUDA.cmake script as follows:

set(_arch_volta "7.0;7.2")

then, it detects the architecture without any problems.

1 possible answer(s) on “CUDA: Volta architecture

  1. For record, here’s my command that I use daily.

    cmake -DOPENCV_EXTRA_MODULES_PATH=/home/nvidia/opencv_contrib/modules \
     -DBUILD_EXAMPLES=true \
     -DOPENCV_ENABLE_NONFREE=true \
     -DWITH_CUDA=ON ..
    

    and OpenCV detects the native CC correctly on Xavier NX.

    -- Detected processor: aarch64
     :
    -- CUDA detected: 10.2
    -- CUDA NVCC target flags: -gencode;arch=compute_72,code=sm_72;-D_FORCE_INLINES
     :
    -- General configuration for OpenCV 4.5.1-pre =====================================
    --   Version control:               4.5.0-312-g31619faa70
     :
    --   NVIDIA CUDA:                   YES (ver 10.2, CUFFT CUBLAS)
    --     NVIDIA GPU arch:             72
    --     NVIDIA PTX archs: