You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "viiccwen (via GitHub)" <gi...@apache.org> on 2026/01/28 16:46:29 UTC
[I] [Bug] Fix CUDA memory alignment errors in amplitude encoding tests [mahout]
viiccwen opened a new issue, #965:
URL: https://github.com/apache/mahout/issues/965
### Description
Two tests fail with `CUDA_ERROR_MISALIGNED_ADDRESS` error when copying data from device to host:
1. `test_amplitude_encode_small_input_large_state` fails
2. `test_l2_norm_batch_kernel_stream` fails
```
thread 'test_amplitude_encode_small_input_large_state' panicked at qdp-kernels/tests/amplitude_encode.rs:559:51:
called `Result::unwrap()` on an `Err` value: DriverError(CUDA_ERROR_MISALIGNED_ADDRESS, "misaligned address")
thread 'test_l2_norm_batch_kernel_stream' panicked at qdp-kernels/tests/amplitude_encode.rs:659:51:
called `Result::unwrap()` on an `Err` value: DriverError(CUDA_ERROR_MISALIGNED_ADDRESS, "misaligned address")
```
Both tests use `device.htod_copy()` which may not guarantee proper memory alignment in all cases. Additionally, `test_amplitude_encode_small_input_large_state` lacks explicit synchronization after kernel execution, which can lead to race conditions when accessing device memory.
--
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: dev-unsubscribe@mahout.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Fix CUDA memory alignment errors in amplitude encoding tests [mahout]
Posted by "viiccwen (via GitHub)" <gi...@apache.org>.
viiccwen closed issue #965: [Bug] Fix CUDA memory alignment errors in amplitude encoding tests
URL: https://github.com/apache/mahout/issues/965
--
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: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org