Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. FAQs
  3. Question for GPU Usage

Question for GPU Usage

Scheduled Pinned Locked Moved FAQs
5 Posts 3 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Gyeongmin KimG Offline
    Gyeongmin KimG Offline
    Gyeongmin Kim
    Contributor
    wrote on last edited by
    #1

    Hello, I am trying to use the GPU(Adreno 650) in VOXL2.
    In the voxl-docker-opencv-opencl gitlab, It says this is the expected ouput.

    root@0a4f66eee0a6:/opt/workspace/examples/fast_corners# ./fast-corners
    FAST ( 300 x  168), keypoints: 557, time:0.487192 cpu
    [ WARN:0] Using world accessible cache directory. This may be not secure: /var/tmp/
    FAST ( 300 x  168), keypoints: 557, time:6.319238 gpu
    

    And it says GPU is too much slower than CPU. And I also got slower result compare to CPU.
    Is it expected output? And What kinds of situations GPU is faster than CPU?
    Thank you for your any advices!

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      That docker example is for VOXL 1. You should not use a Docker on VOXL 2 to access the GPU

      1 Reply Last reply
      0
      • Gyeongmin KimG Offline
        Gyeongmin KimG Offline
        Gyeongmin Kim
        Contributor
        wrote on last edited by Gyeongmin Kim
        #3

        Thank you for reply Chad!
        I already can run the example without docker.
        My question is why GPU is slower than CPU in the result of image.
        I am using opencv-opencl for my application. But I also got the result that GPU takes much time than CPU

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          How are you timing the result, it can be an expensive operation to move the image memory from the cpu to the gpu and back, so it's not uncommon for the entire process to take longer using the gpu if you're copying large quantities of data back and forth even if the main processing you're doing is faster.

          1 Reply Last reply
          0
          • Gyeongmin KimG Offline
            Gyeongmin KimG Offline
            Gyeongmin Kim
            Contributor
            wrote on last edited by
            #5

            Thank you Alex!
            According to your reply, Should I use the gpu for large tasks such as Neural Network or large image instead of the task that need to process each frames?

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            ModalAI
            Categories Recent Tags ModalAI.com Docs
            © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups