ryankert01 commented on code in PR #1108:
URL: https://github.com/apache/mahout/pull/1108#discussion_r2875419950
##########
qdp/qdp-kernels/src/amplitude.cu:
##########
@@ -472,20 +484,29 @@ __global__ void l2_norm_batch_kernel_f32(
const size_t vec_idx = block_in_sample * blockDim.x + threadIdx.x;
const size_t stride = blockDim.x * blocks_per_sample;
+ const float* sample_input = input_batch + base;
+ const bool sample_input_aligned =
+ (reinterpret_cast<uintptr_t>(sample_input) % alignof(float2)) == 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]