ryankert01 commented on code in PR #1108:
URL: https://github.com/apache/mahout/pull/1108#discussion_r2875416012
##########
qdp/qdp-kernels/src/amplitude.cu:
##########
@@ -264,17 +265,19 @@ __global__ void amplitude_encode_batch_kernel(
// Load inverse norm (cached by L1)
const double inv_norm = inv_norms[sample_idx];
- // Vectorized load: read 2 doubles as double2 for 128-bit transaction
+ const double* sample_input = input_batch + input_base;
+ const bool sample_input_aligned =
+ (reinterpret_cast<uintptr_t>(sample_input) % alignof(double2)) ==
0;
Review Comment:
+1
--
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]