This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine runtime feature discovery python API and add documentation to …
…Python API docs
- Loading branch information
Pedro Larroy
committed
Feb 12, 2019
1 parent
f5ba735
commit 5da0748
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Run-Time Feature detection / Library info | ||
|
||
```eval_rst | ||
.. currentmodule:: mxnet.runtime | ||
``` | ||
|
||
## Overview | ||
|
||
The libinfo functionality allows to check for compile-time features supported by the library. | ||
|
||
### Example usage | ||
|
||
```python | ||
In [1]: import mxnet as mx | ||
|
||
In [2]: import mxnet.runtime | ||
|
||
In [3]: mx.runtime.libinfo_features() | ||
Out[3]: | ||
[✔ CUDA, | ||
✔ CUDNN, | ||
✔ NCCL, | ||
✔ CUDA_RTC, | ||
✔ TENSORRT, | ||
✖ CPU_SSE, | ||
✖ CPU_SSE2, | ||
✖ CPU_SSE3, | ||
✖ CPU_SSE4_1, | ||
✖ CPU_SSE4_2, | ||
✔ CPU_SSE4A, | ||
✖ CPU_AVX, | ||
✔ CPU_AVX2, | ||
✔ OPENMP, | ||
✔ SSE, | ||
✖ F16C, | ||
✔ JEMALLOC, | ||
✖ BLAS_OPEN, | ||
✔ BLAS_ATLAS, | ||
✔ BLAS_MKL, | ||
✔ BLAS_APPLE, | ||
✔ LAPACK, | ||
✔ MKLDNN, | ||
✖ OPENCV, | ||
✔ CAFFE, | ||
✔ PROFILER, | ||
✔ DIST_KVSTORE, | ||
✔ CXX14, | ||
✔ SIGNAL_HANDLER, | ||
✖ DEBUG] | ||
``` | ||
|
||
|
||
```eval_rst | ||
.. autosummary:: | ||
:nosignatures: | ||
LibFeature | ||
libinfo_features | ||
``` | ||
|
||
## API Reference | ||
|
||
<script type="text/javascript" src='../../../_static/js/auto_module_index.js'></script> | ||
|
||
```eval_rst | ||
.. automodule:: mxnet.runtime | ||
:members: | ||
``` | ||
|
||
<script>auto_index("api-reference");</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters