IntelPython / dpctl

Python SYCL bindings and SYCL-based Python Array API library
https://intelpython.github.io/dpctl/
Apache License 2.0
97 stars 29 forks source link

Changes test_func_order tests for some unary functions #1658

Closed oleksandr-pavlyk closed 2 months ago

oleksandr-pavlyk commented 2 months ago

The change is to iterate over permutations first, doing some work that does not depend on the order, and then iterate over orders.

This should save doing some computations 4 times (once for each order), now only done once.

The change shaves 4 seconds off of execution of entire test suite on CPU device (from 5 minutes 6 seconds to 5 minutes and 2 seconds).

github-actions[bot] commented 2 months ago

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:

coveralls commented 2 months ago

Coverage Status

coverage: 87.892%. remained the same when pulling cda457456b9d043a58e924f65d8805024ccbb599 on optimize_tests_order into 6ae9f3d6f906dc9d4ff0c63a86d67687d60eea4a on master.

github-actions[bot] commented 2 months ago

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_318 ran successfully. Passed: 870 Failed: 8 Skipped: 92