viiccwen opened a new issue, #1169:
URL: https://github.com/apache/mahout/issues/1169

   ### What
   `qdp-core` DLPack tests fail on Linux environments where no CUDA-capable 
device is available.
   
   The affected tests call `CudaDevice::new(0).unwrap()` directly, which causes 
a panic when CUDA is not available:
   
   - `dlpack_tests::test_dlpack_batch_shape`
   - `dlpack_tests::test_dlpack_single_shape`
   - `dlpack_tests::test_dlpack_single_shape_f32`
   - `dlpack_tests::test_dlpack_batch_shape_f32`
   - `dlpack_tests::test_synchronize_stream_legacy`
   
   This is inconsistent with other GPU-dependent tests in the repository, which 
return early when no CUDA device is available.
   
   ### Steps to Reproduce
   
   1. Run the Rust DLPack test target in a Linux environment without a usable 
CUDA device.
   2. Execute:
   
   ```bash
   cargo test -p qdp-core --test dlpack --manifest-path qdp/Cargo.toml
   ```
   
   3. Observe that the tests panic instead of skipping.
   
   ### Environment
   
   - OS:
   - Python version:
   - Qumat version:
   
   <!-- Include any relevant logs, error messages, or screenshots. -->
   


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