# CUDA Kernel loads slow

**URL:** <https://forums.developer.nvidia.com/t/cuda-kernel-loads-slow/57060>\
**Category:** Jetson TX1\
**Created:** [January 15, 2018, 8:32am UTC](https://forums.developer.nvidia.com/t/cuda-kernel-loads-slow/57060 "2018-01-15T08:32:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andik](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@andik](https://forums.developer.nvidia.com/u/andik)\
**Post date:** [January 15, 2018, 8:32am UTC](https://forums.developer.nvidia.com/t/cuda-kernel-loads-slow/57060/1 "2018-01-15T08:32:17Z")

</div>

I wan’t to do some Image Processing on my Jetson TX1, but i’m struggling with a big bottleneck on the load of my kernel. Even with a empty kernel(see Code below) i get 10ms execution Time?

```auto
__global__ void just_copy(uint8_t *in, uint8_t *out, uint32_t imgw, uint32_t imgh)
{
}

float elapsed=0;
cudaEvent_t start, stop;

cudaEventCreate(&start);
cudaEventCreate(&stop);

cudaEventRecord(start, 0);

dim3 threads(16, 16);
dim3 grid(240,135);
just_copy<<<grid, threads>>>(d_src, d_dst, width, height);

cudaEventRecord(stop, 0);
cudaEventSynchronize (stop);

cudaEventElapsedTime(&elapsed, start, stop);

cudaEventDestroy(start);
cudaEventDestroy(stop);

printf("The elapsed time in gpu was %.2f ms\n", elapsed);

```

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [January 16, 2018, 2:41am UTC](https://forums.developer.nvidia.com/t/cuda-kernel-loads-slow/57060/2 "2018-01-16T02:41:58Z")

</div>

Hi,

Have you maximized the device performance?

```auto
sudo ./jetson_clocks.sh

```

Thanks.
