[ 
https://issues.apache.org/jira/browse/MAHOUT-802?focusedWorklogId=1001419&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1001419
 ]

ASF GitHub Bot logged work on MAHOUT-802:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Jan/26 17:48
            Start Date: 22/Jan/26 17:48
    Worklog Time Spent: 10m 
      Work Description: viiccwen opened a new pull request, #918:
URL: https://github.com/apache/mahout/pull/918

   ### Purpose of PR
   
   This PR implements GPU-accelerated L2 norm calculation for batches of 
float32 vectors, extending the single-vector implementation to support 
efficient batch processing. This is essential for encoding multiple samples 
simultaneously in quantum machine learning workflows.
   
   It's follow-up PR for #916 , pls review it at first.
   
   ## Changes
   
   ### CUDA Kernels (`qdp/qdp-kernels/src/amplitude.cu`)
   
   - Added `l2_norm_batch_kernel_f32()`, `launch_l2_norm_batch_f32()`
   
   ### Rust Bindings (`qdp/qdp-kernels/src/lib.rs`)
   
   - Added `launch_l2_norm_batch_f32` function.
   - Added dummy implementation for non-Linux platforms (returns error code 999)
   
   ### Tests (`qdp/qdp-kernels/tests/amplitude_encode.rs`)
   
   - Added `test_l2_norm_batch_kernel_f32()` test case
   - Test verifies correctness for each sample in the batch
   - Tests with multiple batch sizes (3 samples in test case)
   
   
   ### Related Issues or PRs
   closes #917 
   
   ### Changes Made
   <!

Issue Time Tracking
-------------------

            Worklog Id:     (was: 1001419)
    Remaining Estimate: 0h
            Time Spent: 10m

> Start Phase doesn't properly work in RecommenderJob
> ---------------------------------------------------
>
>                 Key: MAHOUT-802
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-802
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: MAHOUT-802.patch, MAHOUT-802b.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I'm trying to run RecommenderJob and do --startPhase 2 since I have my prefs 
> already in the right format.  Unfortunately, when I do that, I get:
> {quote}
> java.lang.IllegalArgumentException: Number of columns was not correctly set!
>       at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
>       at 
> org.apache.mahout.math.hadoop.similarity.RowSimilarityJob$SimilarityReducer.setup(RowSimilarityJob.java:296)
>       at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:174)
>       at 
> org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:648)
>       at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:416)
>       at 
> org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:256)
> {quote}
> This appears to be due to the fact that the numberOfUsers variable defaults 
> to 0 and is only set when phase 1 is run.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to