You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mahout.apache.org by "viiccwen (via GitHub)" <gi...@apache.org> on 2026/03/02 16:56:31 UTC
[I] [Bug] Batch amplitude and norm kernels can issue misaligned vector loads for odd-length samples [mahout]
viiccwen opened a new issue, #1107:
URL: https://github.com/apache/mahout/issues/1107
### What
The batch amplitude encoding and batched L2 norm CUDA kernels assume each sample base is aligned for `double2` / `float2` vector loads. That assumption does not hold when `sample_len` is odd and `sample_idx > 0`.
In those cases:
- `input_batch + sample_idx * sample_len` is only naturally aligned to the scalar type
- reinterpreting that address as `double2*` or `float2*` can produce misaligned accesses
- CUDA may surface this as `CUDA_ERROR_MISALIGNED_ADDRESS`
### Affected kernels
- `amplitude_encode_batch_kernel`
- `l2_norm_batch_kernel`
- `l2_norm_batch_kernel_f32`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Batch amplitude and norm kernels can issue misaligned vector loads for odd-length samples [mahout]
Posted by "ryankert01 (via GitHub)" <gi...@apache.org>.
ryankert01 closed issue #1107: [Bug] Batch amplitude and norm kernels can issue misaligned vector loads for odd-length samples
URL: https://github.com/apache/mahout/issues/1107
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org