直接运行python3命令时出现cuda-blas错误。但是当我使用sudo时会出现错误提示

时间:2019-05-15 08:18:02

标签: python-3.x tensorflow

当我以用户身份而不是以root用户身份运行模型训练代码时,出现以下错误,但是当我以root用户身份运行命令时,代码运行正常。

2019-05-15 08:14:08.434048:I tensorflow / core / platform / cpu_feature_guard.cc:141]您的CPU支持该TensorFlow二进制文件未编译为使用的指令:AVX2 FMA 2019-05-15 08:14:08.691205:I tensorflow / core / common_runtime / gpu / gpu_device.cc:1432]找到具有属性的设备0: 名称:Tesla P40主要:6个次要:1个内存时钟频率(GHz):1.531 pciBusID:dbd6:00:00.0 totalMemory:22.38GiB空闲内存:22.21GiB 2019-05-15 08:14:08.691284:我tensorflow / core / common_runtime / gpu / gpu_device.cc:1511]添加可见的gpu设备:0 2019-05-15 08:14:09.000931:I tensorflow / core / common_runtime / gpu / gpu_device.cc:982]具有强度1边缘矩阵的设备互连StreamExecutor: 2019-05-15 08:14:09.001004:我tensorflow / core / common_runtime / gpu / gpu_device.cc:988] 0 2019-05-15 08:14:09.001021:I tensorflow / core / common_runtime / gpu / gpu_device.cc:1001] 0:N 2019-05-15 08:14:09.001475:我tensorflow / core / common_runtime / gpu / gpu_device.cc:1115]创建了TensorFlow设备(/ job:localhost /副本:0 /任务:0 /设备:GPU:0和21544 MB内存)->物理GPU(设备:0,名称:Tesla P40,pci总线ID:dbd6:00:00.0,计算能力:6.1) 2019-05-15 08:14:14.983797:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED 2019-05-15 08:14:14.995585:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED 2019-05-15 08:14:15.007580:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED 2019-05-15 08:14:15.019390:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED 2019-05-15 08:14:15.031163:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED 2019-05-15 08:14:15.042872:E tensorflow / stream_executor / cuda / cuda_blas.cc:464]无法创建cublas句柄:CUBLAS_STATUS_NOT_INITIALIZED

0 个答案:

没有答案