Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to check if mxnet uses my gpu?

Can I see what are the available gpus with mxnet?

Is there something similar for tensorflow's

tf.test.gpu_device_name()

in mxnet?

like image 381
Ștefan Avatar asked Mar 02 '18 19:03

Ștefan


1 Answers

In case you have build from source

>>> from mxnet.runtime import feature_list
>>> feature_list()
[✔ 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, ✖ INT64_TENSOR_SIZE, ✖ SIGNAL_HANDLER, ✖ DEBUG]

Here, CUDA and CUDNN is on in the build flag, indicating that it was build with GPU!

like image 132
Chaitanya Bapat Avatar answered Oct 19 '22 11:10

Chaitanya Bapat