# Timing square function in CUDA

**URL:** https://discourse.julialang.org/t/timing-square-function-in-cuda/18440
**Category:** GPU
**Created:** [December 7, 2018, 10:45pm UTC](https://discourse.julialang.org/t/timing-square-function-in-cuda/18440 "2018-12-07T22:45:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![y4lu](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@y4lu](https://discourse.julialang.org/u/y4lu)
#### Post date: [December 8, 2018, 3:41am UTC](https://discourse.julialang.org/t/timing-square-function-in-cuda/18440/2 "2018-12-08T03:41:33Z")

</div>

See [GPU randn way slower than rand?](https://discourse.julialang.org/t/gpu-randn-way-slower-than-rand/18236)  
I think you need the @sync or equivalent `CUDAdrv.synchronize()`

---

_[View the full topic](https://discourse.julialang.org/t/timing-square-function-in-cuda/18440)._
