caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Fixed alingment issue "cudaSuccess (74 vs. 0) misaligned address"

Open kostinalexey opened this issue 7 years ago • 1 comments

In some situations it is possible to have max_workspace to be not multiple of 16. This will lead to at least workspace[1] to be unaligned. Resulting later in "cudaSuccess (74 vs. 0) misaligned address" error.

I am not sure if we must have alignment to 16 bytes (in my case the fix works with alignment to 8 bytes). But I believe using extra 8 bytes in this rare case to be a bit future proof is justified.

kostinalexey avatar Sep 25 '18 11:09 kostinalexey

This will also fix issue #5729

kostinalexey avatar Sep 27 '18 15:09 kostinalexey