# CUDA verbose mode off

**URL:** https://discourse.julialang.org/t/cuda-verbose-mode-off/34930
**Category:** GPU
**Created:** [February 20, 2020, 6:22pm UTC](https://discourse.julialang.org/t/cuda-verbose-mode-off/34930 "2020-02-20T18:22:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ferran\_Mazzanti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ferran_mazzanti/32/7458_2.png) [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)
#### Post date: [February 20, 2020, 6:22pm UTC](https://discourse.julialang.org/t/cuda-verbose-mode-off/34930/1 "2020-02-20T18:22:06Z")

</div>

Hi folks,

sometimes I find that my CUDA functions display this message

```julia
┌ Warning: Performing scalar operations on GPU arrays: This is very slow, consider disallowing these operations with `allowscalar(false)`
└ @ GPUArrays ~/.julia/packages/GPUArrays/1wgPO/src/indexing.jl:16

```

due to the fact that at some (minor) point I’m forced to do a scalar operator, not in parallel. While I know this happens, the appearance of the message is somewhat a pain, so I was wondering if there is a way to turn off the message itself…

Thanks,

Ferran.

---

<div class="post-metadata">

### Author: ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)
#### Post date: [February 20, 2020, 6:42pm UTC](https://discourse.julialang.org/t/cuda-verbose-mode-off/34930/2 "2020-02-20T18:42:02Z")

</div>

You can wrap that code in `@allowscalar`. The warning will be gone on GPUArrays#master.
