cuda:在给tx2刷机后的主机环境问题

今天开始随笔更新以csdn为主了,错误一大片,填坑步步来。

今天在更新完jetson-tx2后发现,原项目编译错误,其实之前遇到过,知道报错的原因,所以不太慌,下面记录下;

报错原因,由于安装jetson的时候将系统cuda环境更新了,之前我用的cuda-8,现在更新为cuda-9了。好知道错误原因了,就一步一步的来。

1)安装cudnn,在官网上下载cudnn7.1 for cuda-9.0(现在区分了个运行版本和开发版本,先装run time,再装developer)

2)下面这个错误估计很少见,我在网上没有找到,开始我以为是cuda-9.0的计算能力不兼容35的了,于是就把35的注释掉,结果我注释到52都还有这个问题,于是乎,看了下makefile,发现我调用nvcc是指明用cuda-8.0目录下的。8.0的nvcc去编译9.0的库,杠杠的报错呀。呵呵,问题发现了,修改了nvcc路径,编程成功,下面是粘贴出来的错误。

^
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 535; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 556; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 578; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 600; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 625; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 646; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 718; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 737; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 812; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 831; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 863; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 886; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1001; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1220; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1240; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1423; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1526; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1546; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1716; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 1929; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2030; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2049; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2500; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2586; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2693; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 2943; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3065; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3473; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3516; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3535; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3555; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3595; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3682; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3725; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3744; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3764; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058c3_00000000-10_blas_kernels.compute_35.ptx, line 3804; error   : Call has wrong number of parameters
ptxas fatal   : Ptx assembly aborted due to errors
Makefile:95: recipe for target 'obj/blas_kernels.o' failed
make: *** [obj/blas_kernels.o] Error 255
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 153; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 183; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 241; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 267; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 297; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 323; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 365; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 383; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 547; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 568; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 622; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 643; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 681; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 700; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 721; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 738; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 759; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 777; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 794; error   : Call has wrong number of parameters
ptxas /tmp/tmpxft_000058f7_00000000-10_crop_layer_kernels.compute_35.ptx, line 812; error   : Call has wrong number of parameters
ptxas fatal   : Ptx assembly aborted due to errors
Makefile:95: recipe for target 'obj/crop_layer_kernels.o' failed
make: *** [obj/crop_layer_kernels.o] Error 255


坑坑特别多,路得步步走,还好解决了,不算是拖节奏,没有上报错误。

            
阅读更多

没有更多推荐了,返回首页