Python 停止切换到 GPU 上下文

Python Stopped Working on switiching to GPU context

我正尝试在 AWS 上设置我的机器学习环境,如下所示:-

OS: windows server 2012 r2 , 64 bit
instance: p2.xlarge
GPU : Tesla K80 series
CUDA: 9.2.148
Graphis driver: 398.26 (installed by cuda toolkit)
python : 3.5 ( tested using 2.7.15 as well) ,64 bit
IDE: Pycharm Community 2018.2, 64 bit
mxnet librabry: mxnet-cu92

现在当我 运行 以下代码时 :

import mxnet as mx
from mxnet import nd
mx.random.seed(1)
z = nd.ones(shape=(3,3), ctx=mx.cpu())
print(z)

它工作正常,但是当我更改 ctx=mx.gpu() 或 ctx=mx.gpu(0) 时,出现错误 python停止工作。

cuda 安装程序工作正常我编译了 运行 deviceQuerybandwidthTest 示例应用程序,这些正在按预期提供输出。

编辑:: python 崩溃详细信息为我提供了以下信息:

Fault Module Name:  ucrtbase.DLL

我尝试使用 Cuda Graphis 驱动程序:398.44(从 cuda 网站推荐我的 gpu 和 os)到目前为止仍然没有成功。

有解决此问题的想法吗?

我花了将近3天的时间终于得到了解决方案,是mxnet库引起了问题。在尝试不同的 cuda 工具包和 mxnet 库后,以下组合对我有用:-

1) Cuda Toolkit - 9.2
   Mxnet lbrary : mxnet-cu92 version 1.2.0b20180525
   (Failing for most of the recent versions ) 
2)  Cuda Toolkit - 8.0
   Mxnet lbrary : mxnet-cu80 version 0.11.0
   (Failing for most of the recent versions  ) 

感谢