Caffe run Error: im2col.cu:61] Check Failed:error = = cudasuccess (8 vs. 0) Invalid device function

Source: Internet
Author: User

Original URL:

Http://www.bubuko.com/infodetail-2265238.html


Error:

IM2COL.CU:61] Check Failed:error = = cudasuccess (8 vs. 0) Invalid device function

Reason: Because makefile.config inside only cuda8.0 the following schema compiled Cuda program, so the use of cuda8.0 after the CUDA program is not compiled

FIX: Modify the Cuda_arch in Makefile.config

Add-gencode arch=compute_61,code=sm_61

Calculation ability can be referred to the following link to add appropriate schema parameters

http://blog.csdn.net/allyli0022/article/details/54628987


Comments can also be seen in Makefile.config (I am currently using gtx1080):

# CUDA Architecture setting:going with all of them.
# for CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
# for CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
Cuda_arch: =-gencode arch=compute_20,code=sm_20 \
       -gencode Arch=compute_20,code=sm_ \
       -gencode arch=compute_30,code=sm_30 \
       -gencode arch=c ompute_35,code=sm_35 \
       -gencode arch=compute_50,code=sm_50 \
      &NBS P -gencode arch=compute_52,code=sm_52 \
         -gencode arch=compute_60,code=sm_60 \
& nbsp        -gencode arch=compute_61,code=sm_61 ,
        #-gencode Arch=comp ute_61,code=compute_61


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.