failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED

最近在跑一个三维分割网络,开始的时候报错:

tensorflow.python.framework.errors_impl.InternalError: Blas SGEMM launch failed

就去搜索了一下,说是报错的原因是有其他的python进程在使用GPU,可以把其他进程关掉,或者在代码中加入:

if 'session' in locals() and session is not None:
    print('Close interactive session')
    session.close()

发现并没有什么用。
然后发现还有个报错:

failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED

最后发现是因为cuda的问题,我的电脑是新配的2080ti,cuda9.0好像不支持,所以换个cuda 10.0 就完美解决了。

我的环境:
RTX2080ti + cuda 10.0 + cudnn 7.3.1 + tensorflow 1.13.1 + python 3.6.8

你可能感兴趣的:(failed to run cuBLAS routine cublasSgemm_v2: CUBLAS_STATUS_EXECUTION_FAILED)