在r36.3.0上编译 cuda 示例失败

系统版本:R36.3.0
设备型号:ORIN NANO 8GB开发套件
问题:根据https://forums.developer.nvidia.com/t/jetson-orin-nano-hw-faq/249118中的第16条进行压力测试时,发现需要手动安装并编译cuda示例,git下载示例后执行make编译出现以下问题

make[1]: Leaving directory '/home/nvidia/cuda-samples/Samples/4_CUDA_Libraries/simpleCUBLAS'
make[1]: Entering directory '/home/nvidia/cuda-samples/Samples/4_CUDA_Libraries/jitLto'
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common -I/usr/local/cuda/include -m64 --threads 0 --std=c++11  -o jitLto.o -c jitLto.cpp
jitLto.cpp: In function ‘int main(int, char**)’:
jitLto.cpp:136:25: error: ‘nvJitLinkVersion’ was not declared in this scope; did you mean ‘nvJitLinkResult’?
  136 |   nvJitLinkResult res = nvJitLinkVersion(&cuda_major, &cuda_minor);
      |                         ^~~~~~~~~~~~~~~~
      |                         nvJitLinkResult
make[1]: *** [Makefile:392: jitLto.o] Error 255
make[1]: Leaving directory '/home/nvidia/cuda-samples/Samples/4_CUDA_Libraries/jitLto'
make: *** [Makefile:45: Samples/4_CUDA_Libraries/jitLto/Makefile.ph_build] Error 2
nvidia@ubuntu:~/cuda-samples$ 

请问应该怎么解决?

Hi,

Have you checkout the v12.2 branch?
We test simpleCUBLAS on JetPack 6.0 GA and it can be compiled without an issue.

$ git clone -b v12.2 https://github.com/NVIDIA/cuda-samples.git
$ cd cuda-samples/Samples/4_CUDA_Libraries/simpleCUBLAS
$  make
$ ./simpleCUBLAS
GPU Device 0: "Ampere" with compute capability 8.7

simpleCUBLAS test running..
simpleCUBLAS test passed.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.