Added support for python -m dpctl -l to list platforms#1014
Added support for python -m dpctl -l to list platforms#1014oleksandr-pavlyk merged 2 commits intomasterfrom
Conversation
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1014/index.html |
|
Array API standard conformance tests for dpctl=0.14.1dev0=py310h8c27c75_5 ran successfully. |
|
Array API standard conformance tests for dpctl=0.14.1dev0=py310h8c27c75_6 ran successfully. |
``` (dev_dpctl) opavlyk@opavlyk-mobl:~/repos/dpctl$ python -m dpctl --help usage: __main__.py [-h] [--includes] [--cmakedir] [--library] [-l] [-e] [-s] optional arguments: -h, --help show this help message and exit --includes Include flags dpctl headers. --cmakedir CMake module directory, ideal for setting -DDPCTL_ROOT in CMake. --library Linker flags for SyclInterface library. -f, --full-list Enumerate system platforms, using dpctl.lsplatform(verbosity=2) -l, --long-list Enumerate system platforms, using dpctl.lsplatform(verbosity=1) -s, --summary Enumerate system platforms, using dpctl.lsplatform() ```
ae88bda to
4952963
Compare
|
I have force pushed to change short options used. It is now |
|
Array API standard conformance tests for dpctl=0.14.1dev0=py310h8c27c75_13 ran successfully. |
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.14.1dev0=py310h8c27c75_13 ran successfully. |
It is pretty cumbersome to use DPCTL to enumerate devices typing
python -c "import dpctl; dpctl.lsplatform(verbosity=2)".This change adds support for enumerating devices in all visible platforms to
__main__, replacing the above with much easier to typepython -m dpctl -f.