• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpctl / 6395722032
86%

Build:
DEFAULT BRANCH: master
Ran 03 Oct 2023 05:11PM UTC
Jobs 1
Files 70
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Oct 2023 04:23PM UTC coverage: 85.879% (+0.1%) from 85.777%
6395722032

push

github

web-flow
Check in of generic reduction templates and some reductions (#1399)

* Implements necessary sycl utilities for custom reductions

* Implements dpctl.tensor.max and dpctl.tensor.min

* Adds tests for min and max

* Reductions now set max_wg to the minimum of the max work group size and 2048
- This prevents running out of resources when using local memory on CPU

* max and min nan propagation fixed for CPU devices
- drops use of fetch_max/fetch_min for floats, which do not handle nans correctly

* Tweak to test_reduction_kernels

* Implements dpctl.tensor.argmax and argmin

* Tests for argmin and argmax

Also fixes argmin and argmax for scalar inputs

* Argmin and argmax now handle identities correctly

Adds a test for this behavior

Fixed a typo in argmin and argmax causing shared local memory variant to be used for more types than expected

* Replaced `std::min` with `idx_reduction_op_`

* reductions now well-behaved for size-zero arrays
- comparison and search reductions will throw an error in this case
- slips in change to align sum signature with array API spec

* removed unnecessary copies in reduction templates

* Refactors sum to use generic reduction templates

* Sum now uses a generic Python API

* Docstrings added for argmax, argmin, max, and min

* Small reduction clean-ups

Removed unnecessary copies in custom_reduce_over_group

Sequential reduction now casts before calling operator (makes behavior explicit rather than implicit)

* Added test for argmin with keepdims=True

* Added a test for raised errors in reductions

Also removed unused `_usm_types` in `test_tensor_sum`

* Removed `void` overloads from reduction utilities

These were unused by dpctl

* Added missing include, Identity to use has_known_identity

Implementation of Identity trait should call sycl::known_identity
if trait sycl::has_known_identity is a true_type.

Added IsMultiplies, and identity value for it, since ... (continued)

2439 of 2873 branches covered (0.0%)

Branch coverage included in aggregate %.

104 of 107 new or added lines in 2 files covered. (97.2%)

8672 of 10065 relevant lines covered (86.16%)

7840.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
93.42
4.16% dpctl/tensor/_reduction.py
Jobs
ID Job ID Ran Files Coverage
1 6395722032.1 03 Oct 2023 05:12PM UTC 95
77.49
Source Files on build 6395722032
  • Tree
  • List 70
  • Changed 25
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 71e891ce on github
  • Prev Build on master (#6333248076)
  • Next Build on master (#6400809035)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc