failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED Blas GEMM launch failed
项目场景:
一个命名实体识别模型,BERT+BiGRU+CRF。
问题描述:
在以前的笔记本上面,显卡2060,python3.7,tensorflow1.13,cuda10.0,cudnn7.4一直运行无错。
把模型弄到台式机上面来,3060显卡,装了python3.7,tensorflw1.13,cuda10.0,cudnn7.4,显示以下错误:
failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED
Traceback (most recent call last):
tensorflow.python.framework.errors_impl.InternalError: Blas GEMM launch failed : a.shape=(1536, 2), b.shape=(2, 768), m=1536, n=768, k=2
[[{{node bert/embeddings/MatMul}}]]
[[{{node crf_loss/Mean}}]]
原因分析:
网上解决方案没用,包括
①:设置显存
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0' #use GPU with ID=0
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memory_fraction = 0.5 # maximun alloc gpu50% of MEM
# config.gpu_options.allow_growth = True #allocate dynamically
③显存占用,关闭其他占用显存程序
②重启
解决方案:
原因其实很简单,3060等30系显卡不支持cuda11以下版本,等死吧你
failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED Blas GEMM launch failed相关推荐
- InternalError: Blas GEMM launch failed : a.shape=(100, 784), b.shape=(784, 10), m=100, n=10...问题解决办法
在学习tensorflow的分布式学习时,在实验代码中遇到以下错误: InternalError: Blas GEMM launch failed : a.shape=(100, 784), b.sh ...
- TensorFlow: couldn’t open CUDA library cupti64_80.dll、InternalError: Blas SGEMM launch failed
1. couldn't open CUDA library cupti64_80.dll Win10 TensorFlow(gpu)安装详解 在资源管理器中查询 cupti64_80.dll 的位置. ...
- Blas SGEMM launch failed
- 错误调试:GPU 版 TensorFlow failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
如果你是使用 GPU 版 TensorFlow 的话,并且你想在显卡高占用率的情况下(比如玩游戏)训练模型,那你要注意在初始化 Session 的时候为其分配固定数量的显存,否则可能会在开始训练的时候 ...
- 解决Keras的failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED、attempting to perform BLAS operat
解决Keras的failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED.attempting to perform BLAS operat ...
- TensorFlow—GPU版本运行报错:failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
报错: 2021-02-23 00:00:47.646531: E tensorflow/stream_executor/cuda/cuda_blas.cc:238] failed to create ...
- 故障error: failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: “
环境: docker:18.09.9 kubernetes:1.17 错误信息: error: failed to run Kubelet: failed to create kubelet: mis ...
- kafka集群脚本启动失败,在kafkaServer.out中提示nohup: failed to run command `java’: No such file or directory
问题描述: 今天在使用shell脚本启动集群时,发现无法启动集群,在logs目录下只有一个kafkaServer.out文件,其中内容为:nohup: failed to run command `j ...
- Ubuntu下Linux系统部署fisco时bash操作报错权限不足(permission denied) failed to run command ‘........‘
Ubuntu下Linux系统部署fisco时bash操作报错权限不足(permission denied) failed to run command '-' 例如这里就指的是fisco-bcos这个 ...
最新文章
- 4.API的调用过程(系统服务表)
- python之WEB开发:图片管理
- proteus里面没有stm32怎么办_学习STM32日志——独立看门狗实验(20.06.23)
- 如何将读书与自己的生活工作结合起来?
- myeclipse springboot 运行内存溢出_springboot学习心得 - aowumao
- linux基础应用和常用技巧
- 与非CCR代码互操作
- python——VS2017开发python与python3.6更新特性
- 做好前端的话HTML和CSS基础必须夯实!
- ckc交易什么意思_期货交易中的标准仓单充抵保证金是什么意思?
- photoshop cc版下载
- 如何在html中插入乘积函数,excel乘法怎么保留两位小数
- Bat脚本-timeout 命令
- python大鱼吃小鱼程序代码_pygame大鱼吃小鱼源代码
- 基于华为ENSP模拟器下的多个区域互联,减少LSA的更新量,加快收敛,保障更新安全的OSPF综合练习
- 中国城市电话区号对照表中国移动短信中心号查询及命名规则
- C#根据当前时间获取周,月,季度,年度等时间段的起止时间
- scandisk常用方法
- 【STM32】stm32独立看门狗(IWDG)
- 【论文读后感】:A simple yet effective baseline for 3d human pose estimation
热门文章
- 智能计算—模糊计算总结
- 已解决java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long异常的正确
- 问题 K: 算法设计与分析 页码统计
- 机械学习 - 数学基础 - 1
- 本实战将实现根据输入的父亲和母亲的身高,预测出儿子的身高,并打印出来。计算公式为:儿子身高 = (父亲身高+ 母亲身高)×0.54。实现效果如图3所示。
- Android Handler Message 里面的message.what, message.arg1,message.obj,obtainMessage, message.setData的使用
- opencv卡尔曼滤波详解
- 怎么放下对技术无敌的认知?
- web版“节奏猜猜看“小工具-Web Workers+requestAnimationFrame+transition
- IntelliJ IDEA 2018.2 免费激活方式