An update on this topic, Sheng just merged the refinements to the feature detection so it's now a single API call. ( https://github.com/apache/incubator-mxnet/pull/13964 ). Thank you Sheng for the reviews.
Please use this functionality to check for capabilities of MXNet at runtime such as Cuda, OpenCV etc. This can simplify tests and automation in several places in the code. Lin Iblis is already preparing Julia support: https://github.com/apache/incubator-mxnet/pull/13992 This is a PR that adds documentation on the feature and explains how to use it from Python: https://github.com/apache/incubator-mxnet/pull/14130 Thanks. On Fri, Jan 25, 2019 at 7:08 PM Sheng Zha <szha....@gmail.com> wrote: > > Hi Pedro, > > Happy to help, though I was waiting for PR comments to be addressed. > Currently the PR is close to complete, with some open comments to be resolved. > > -sz > > > On Jan 25, 2019, at 9:27 AM, Pedro Larroy <pedro.larroy.li...@gmail.com> > > wrote: > > > > That's Great! There's a PR that we should merge first which > > internalizes the enum inside the library as per Sheng's suggestion. > > > > https://github.com/apache/incubator-mxnet/pull/13964 > > > > @Sheng could we merge the PR? so we can build on top of this feature? > > It's badly needed for tests suites etc. > > Thanks a lot! > > > > Pedro. > > > > > >> On Fri, Jan 25, 2019 at 2:22 PM Iblis Lin <ib...@hs.ntnu.edu.tw> wrote: > >> > >> Hi, > >> > >> I added the Julia binding for it. > >> PR is here: > >> https://github.com/apache/incubator-mxnet/pull/13992 > >> > >> Iblis Lin > >> 林峻頤 > >> > >>> On 1/23/19 12:39 AM, Pedro Larroy wrote: > >>> Hi > >>> > >>> I'm pleased to announce that runtime feature detection has been merged > >>> in master, thanks to Aaron for the merge and the many reviewers who > >>> gave feedback on the PR. ( > >>> https://github.com/apache/incubator-mxnet/pull/13549 ) > >>> > >>> As the functionality matures and is exposed through other bindings, > >>> please feel free to try and use it to build on it, for example for > >>> easier test suite selection depending on what's compiled in the > >>> engine. > >>> > >>> Usage examples: > >>> > >>> $ ipython > >>> In [4]: import mxnet.mxfeatures > >>> > >>> In [5]: mxnet.mxfeatures.features_enabled() > >>> Out[5]: > >>> [<Feature.CPU_SSE: 5>, > >>> <Feature.CPU_SSE2: 6>, > >>> <Feature.CPU_SSE3: 7>, > >>> <Feature.CPU_SSE4_1: 8>, > >>> <Feature.CPU_SSE4_2: 9>, > >>> <Feature.CPU_AVX: 11>, > >>> <Feature.F16C: 15>, > >>> <Feature.BLAS_OPEN: 17>, > >>> <Feature.LAPACK: 21>, > >>> <Feature.SIGNAL_HANDLER: 28>, > >>> <Feature.DEBUG: 29>] > >>> > >>> In [6]: mxnet.mxfeatures.features_enabled_str() > >>> Out[6]: 'CPU_SSE, CPU_SSE2, CPU_SSE3, CPU_SSE4_1, CPU_SSE4_2, CPU_AVX, > >>> F16C, BLAS_OPEN, LAPACK, SIGNAL_HANDLER, DEBUG' > >>> > >>> see also: help(mxnet.mxfeatures) > >>> > >>> Regards. > >>>