cublasInit() 什么时候返回 NOT_INITIALIZED 状态?
在我的 cublas 初始化期间,我收到一个错误,即不是想要的 CUBLAS_STATUS_SUCCESS。
检查返回的状态,我发现返回的状态是 CUBLAS_STATUS_NOT_INITIALIZED ,它没有被列为该函数的可能返回。
有谁知道是什么导致了这种行为?
during my cublas initialization, i get an error, i.e. not the wanted CUBLAS_STATUS_SUCCESS.
Checking the returned status, i figured out that the returned status is CUBLAS_STATUS_NOT_INITIALIZED which is not listed as possible returns of that function.
Does anyone have an idea what may have caused that behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CUBLAS 4.x 文档提到 CUBLAS_STATUS_NOT_INITIALIZED 作为 cublasCreate 的错误代码,含义为“CUDA 运行时初始化失败”。
您能否验证您是否拥有有效的 CUDA 上下文?
如果是,您是否创建了有效的 CUBLAS 上下文?
对于使用旧版 API 的 CUBLAS 3.x 和 CUBLAS 4.x:当当前线程中有 CUDA 上下文处于活动状态时,您是否调用了 cublasInit,并且它是否返回了 CUBLAS_STATUS_SUCCESS?
对于具有新 API 的 CUBLAS 4.x:您是否调用了 cublasCreate 并且它是否返回了 CUBLAS_STATUS_SUCCESS?您是否使用调用 cublas..._v2 方法时创建的句柄?
The CUBLAS 4.x documentation mentions CUBLAS_STATUS_NOT_INITIALIZED as error code for cublasCreate with the meaning "the CUDA Runtime initialization failed".
Can you verify that you have a valid CUDA context?
If so, did you create a valid CUBLAS context?
For CUBLAS 3.x and CUBLAS 4.x using the legacy API: did you call cublasInit while there is a CUDA context in the current thread active, and did it return CUBLAS_STATUS_SUCCESS?
For CUBLAS 4.x with new API: did you call cublasCreate and did it return CUBLAS_STATUS_SUCCESS? Are you using the handle created when calling cublas..._v2 methods?