Misaligned Shared or Local Address

2.2k Views Asked by At

I am using cuda-memcheck for checking for memory errors. A simple question. What exactly means Misaligned Shared or Local Address ?

1

There are 1 best solutions below

1
On

Additional information on CUDA-MEMCHECK errors can be found in CUDA-MEMCHECK User Manual.

Misaligned address exceptions occur when the address does not meet the natural alignment of the data access size.

error if (address & (access_size_in_bytes - 1))

For example if you tried to perform a 32-bit shared load from address 0x1 you would receive a misaligned address exception. The address needs to be a multiple of 4.