在ubuntu下使用anaconda安装jittor后运行测试出现此错误:RuntimeError: [f 0514 20:13:59.276076 48 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: "/home/hongtauo/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc"

  1. 错误信息:
    RuntimeError: [f 0514 20:13:59.276076 48 log.cc:608] Check failed ret(256) == 0(0) Run cmd failed: “/home/hongtauo/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/bin/nvcc” “/home/hongtauo/anaconda3/envs/jittor/lib/python3.8/site-packages/jittor/src/misc/nan_checker.cu” -std=c++14 -Xcompiler -fPIC -Xcompiler -march=native -Xcompiler -fdiagnostics-color=always -I"/home/hongtauo/anaconda3/envs/jittor/lib/python3.8/site-packages/jittor/src" -I/home/hongtauo/anaconda3/envs/jittor/include/python3.8 -I/home/hongtauo/anaconda3/envs/jittor/include/python3.8 -DHAS_CUDA -DIS_CUDA -I"/home/hongtauo/.cache/jittor/jtcuda/cuda11.2_cudnn8_linux/include" -I"/home/hongtauo/anaconda3/envs/jittor/lib/python3.8/site-packages/jittor/extern/cuda/inc" -I"/home/hongtauo/.cache/jittor/jt1.3.7/g++11.3.0/py3.8.16/Linux-5.19.0-3x84/12thGenIntelRCx5f/default/cu11.2.152_sm_86" -O2 -c -o “/home/hongtauo/.cache/jittor/jt1.3.7/g++11.3.0/py3.8.16/Linux-5.19.0-3x84/12thGenIntelRCx5f/default/cu11.2.152_sm_86/obj_files/nan_checker.cu.o” -x cu --cudart=shared -ccbin=“/usr/bin/g++” -w -I"/home/hongtauo/anaconda3/envs/jittor/lib/python3.8/site-packages/jittor/extern/cuda/inc"

已解决,安装最新版本的cuda和cudnn即可

您好,我和您的问题相同,请问是需要删除原来的cuda版本,然后再安装新的嘛,还是直接在conda的虚拟环境里更新

下载最新的cuda和cdunn,然后进入conda中jittor的环境里面,将cuda的环境变量添加进去