gpt4 book ai didi

Cuda错误CUDA_ERROR_NO_BINARY_FOR_GPU

转载 作者:行者123 更新时间:2023-12-02 02:15:12 31 4
gpt4 key购买 nike

我有一些 PTX 代码无法加载。我在 650M 的 OSX 上运行这个程序。其他 CUDA 示例在系统上运行良好,但加载模块时我总是收到错误 209:CUDA_ERROR_NO_BINARY_FOR_GPU

我错过了什么?

 .version 3.1
.target sm_20, texmode_independent
.address_size 64


// .globl examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx
.entry examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx(
.param .u64 .ptr .global .align 8 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_0,
.param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_1,
.param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_2,
.param .f64 examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_3
)
{
.reg .pred %p<396>;
.reg .s16 %rc<396>;
.reg .s16 %rs<396>;
.reg .s32 %r<396>;
.reg .s64 %rl<396>;
.reg .f32 %f<396>;
.reg .f64 %fl<396>;

ld.param.u64 %rl0, [examples_2E_mandelbrot_2F_calc_2D_mandelbrot_2D_ptx_param_0];
mov.b64 func_retval0, %rl0;
ret;
}

最佳答案

您收到错误是因为您的 PTX 包含语法错误,因此永远不会编译。线路

mov.b64 func_retval0, %rl0;

引用了标签func_retval0,但该标签并未在 PTX 文件中的任何地方定义。您可以通过尝试自己使用工具链编译 PTX 来检查这一点:

$ ptxas -arch=sm_20 own.ptx 
ptxas own.ptx, line 24; error : Arguments mismatch for instruction 'mov'
ptxas own.ptx, line 24; error : Unknown symbol 'func_retval0'
ptxas own.ptx, line 24; error : Label expected for forward reference of 'func_retval0'
ptxas fatal : Ptx assembly aborted due to errors

关于Cuda错误CUDA_ERROR_NO_BINARY_FOR_GPU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15168965/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com