Giter Club home page Giter Club logo

Comments (5)

cudawarped avatar cudawarped commented on June 12, 2024

Currently OpenCV does not use CUDA_ARCHITECTURES (I am almost 100% sure this requires CUDA to be a first class language). Instead it can do one of four things, build for

  1. all architechtures supported by the installed version of CUDA toolkit (almost equivelent to all) if CUDA_ARCH_BIN and CUDA_ARCH_PTX are not specified, or
  2. architectures specified by combinations of CUDA_ARCH_BIN and CUDA_ARCH_PTX, or
  3. a specific generation, e.g. CUDA_GENERATION=Lovelace, or
  4. the architechtures of the hosts GPUs if CUDA_GENERATION=Auto (equivelent to native).

If CUDA is a added as a first class language (#23021) these options could be supported however they would not enable OpenCV to determine which real and virtual architechtures it was being built for which is required for both cuda::TargetArchs at runtime and the information shown by CMake at configuration time e.g.

-- NVIDIA GPU arch: 50 52 60 61 70 75 80 86 89 90
-- NVIDIA PTX archs: 90

from opencv.

chacha21 avatar chacha21 commented on June 12, 2024

Ok, it's more clear.

But is it documented somewhere ? The tooltips in CMakeGUI above CUDA_GENERATION are not very informative.

from opencv.

cudawarped avatar cudawarped commented on June 12, 2024

But is it documented somewhere ?

I don't think so apart from a mention here.

from opencv.

chacha21 avatar chacha21 commented on June 12, 2024

Should I suggest a doc improvement (for instance a URL in the CMake tooltip pointing to an explanation in a dedicated page), leaving this thread open as a reminder, or do I close it ?

from opencv.

cudawarped avatar cudawarped commented on June 12, 2024

Should I suggest a doc improvement (for instance a URL in the CMake tooltip pointing to an explanation in a dedicated page),

You could add the information to the CUDA Module Introduction page however that page is really out of date and all the information could do with an update.

from opencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.