# Question for GPU Usage

Source: https://forum.modalai.com/topic/1747/question-for-gpu-usage
Category: FAQs (https://forum.modalai.com/category/4/faqs)
Posted: 2023-01-26 02:25:46 UTC by Gyeongmin Kim
Replies: 4 · Views: 1417

## Gyeongmin Kim · 2023-01-26 02:25:46 UTC

Hello, I am trying to use the GPU(Adreno 650) in VOXL2.
In the [voxl-docker-opencv-opencl gitlab](https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-opencv-opencl), 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!

## Reply by Chad Sweet (ModalAI staff) · 2023-01-26 02:56:29 UTC

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

## Reply by Gyeongmin Kim · 2023-01-26 16:21:46 UTC

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

## Reply by Guest · 2023-01-26 18:55:35 UTC

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.

## Reply by Gyeongmin Kim · 2023-01-27 18:51:51 UTC

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?
