viiccwen opened a new pull request, #1115:
URL: https://github.com/apache/mahout/pull/1115

   ### Related Issues
   
   closes #1114 
   
   ### Changes
   
   - [x] Bug fix
   - [x] New feature
   - [ ] Refactoring
   - [ ] Documentation
   - [x] Test
   - [ ] CI/CD pipeline
   - [ ] Other
   
   ### Why
   
   This PR adds GPU-pointer support for `iqp` and `iqp-z` so Python CUDA 
tensors can use the direct CUDA encoding path instead of failing with `Not 
implemented`.
   
   Before this change, the Python bindings accepted CUDA tensors for IQP-family 
methods, but the request eventually hit the default `QuantumEncoder` 
GPU-pointer implementation and failed at runtime.
   
   ### How
   
   #### Core
   
   - Implemented `encode_from_gpu_ptr(...)` for `IqpEncoder`
   - Implemented `encode_batch_from_gpu_ptr(...)` for `IqpEncoder`
   - Reused the existing IQP / IQP batch kernels
   - Kept stream handling consistent with the other GPU-pointer encoder 
implementations
   
   #### Tests
   
   - Added core regression coverage for GPU-pointer `iqp-z` encoding
   - Added core regression coverage for GPU-pointer `iqp` encoding
   - Verified Python CUDA tensor binding coverage with 
`testing/qdp/test_bindings.py`
   
   ## Checklist
   
   - [x] Added or updated unit tests for all changes
   - [x] Added or updated documentation for all changes
   


-- 
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]

Reply via email to