Locality of local arrays in CUDA kernel

Hello.

If I have local arrays (fixed-size) in CUDA kernel, are those arrays private to each thread?

Yes, fixed size arrays locally declared in a CUDA kernel are private to each thread unless you add the “shared” attribute.

  • Mat