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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
