无法在 CUDA 驱动程序 API 中加载 .cubin 模块

发布于 2024-09-25 15:02:10 字数 341 浏览 0 评论 0原文

我正在使用 0.3.1 JCuda 和 3.1 nvidia cuda sdk。我正在尝试从 此处 运行 JCudaRuntimeDriverMixSample.java。我使用“nvcc -keep invertVectorElements.cu”编译了 .cu 文件。我将 cuModuleLoad 文件名设置为生成的 .sm_10.cubin 文件。 当我运行编译后的java文件时,我得到CUDA_ERROR_INVALID_SOURCE。我在 GTS 450 GPU 上运行 nvidia 驱动程序版本 256.53。

I am using 0.3.1 JCuda and 3.1 nvidia cuda sdk. I am trying to run JCudaRuntimeDriverMixSample.java from here. I compiled the .cu file with "nvcc -keep invertVectorElements.cu". I set the cuModuleLoad filename to the .sm_10.cubin file generated.
When I run the compiled java file, I get CUDA_ERROR_INVALID_SOURCE. I am running nvidia driver version 256.53 on a GTS 450 gpu.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

惟欲睡 2024-10-02 15:02:10

您是否尝试过加载 .ptx 文件而不是 .cubin 文件?据我了解,.cubin 文件已经针对非常特定的体系结构进行了组装,而 .ptx 是由驱动程序进行 JIT 编译的。 (您仍然可以将 cuModuleLoad 与 .ptx 一起使用)。您正在尝试加载 cubin 的 sm_10 版本 - 但您有计算能力 1.0 设备吗?

Have you tried loading the .ptx file rather than the .cubin file? As I understand it, .cubin files are already assembled for very particular architectures, whereas .ptx are JIT-compiled by the driver. (You can still use cuModuleLoad with .ptx). You're attempting to load the sm_10 version of the cubin - but do you have a compute capability 1.0 device?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文