zoukankan      html  css  js  c++  java
  • Check failed: error == cudaSuccess (7 vs. 0) too many resources requested for launch

    查看显卡信息

    /usr/local/cuda-8.0/samples/bin/x86_64/linux/release$  ./deviceQuery 
    

     

     Total number of registers available per block: 65536
    

    查看caffe源码中使用寄存器的数量,在Makefile.config中添加

    # nvcc param
    NVCCFLAGS :=  -Xptxas -v

    Check failed: error == cudaSuccess (7 vs. 0) too many resources requested for launch

    https://devtalk.nvidia.com/default/topic/569648/cudaerrorlaunchoutofresources-aka-quot-too-many-resources-requested-for-launch-quot-/?offset=1

    From compilation:
    ptxas info : Used 49 registers, 64 bytes cmem[0], 8 bytes cmem[14]

    From deviceQuery:
    Total number of registers available per block: 32768

    49 x 1024 = 50176 > 32768 then goto resize block :-)

    Thank you very much njuffa!
    BTW which manual describes the compiler options?
     
    Posted 07/29/2013 12:48 AM 
  • 相关阅读:
    SQL SqlParameter
    C# 迭代器与yield关键字
    ADO.NET调用SQL存储过程
    C# XML
    C# MDI应用程序
    LINQ 基础
    C# 文件操作
    C# 操作注册表
    SQL从SQL SERVER中获取数据库结构信息
    Linux发展史
  • 原文地址:https://www.cnblogs.com/ya-cpp/p/9873567.html
Copyright © 2011-2022 走看看