'noinline' was not declared

CUDA 5.5, boost 1.55, 更新 caffe 时出现:

/boost_1_55_0/boost/assert.hpp:102: error: ?.oinline?.was not declared in this scope

查看/boost/assert.hpp 中 第102行是

BOOST_NOINLINE void assertion_failed_msg(CharT const * expr, char const * msg, char const * function,

所以上面的错误应该是

/boost_1_55_0/boost/assert.hpp:102: error: boost_noinline was not declared in this scope

Google后发现需要添加如下信息:

CUDA_FLAGS_COMMON=-use_fast_math -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘

于是,在 Makefile.config 文件中添加下面这行:

CUDA_FLAGS_COMMON=-use_fast_math -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘

然后在 makefile 文件中将上面定义的CUDA_FLAGS_COMMON 添加到 NVCCFLAGS :

NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)

改为

NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(CUDA_FLAGS_COMMON) $(COMMON_FLAGS)

也可以不改Makefile.config 文件,直接在 makefile 中添加:

NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘ $(COMMON_FLAGS)

                                   ------- 记录备忘。

'noinline' was not declared

时间: 2024-10-26 16:15:25

'noinline' was not declared的相关文章

modelsim中,错误 Error: already declared in this scope ()

仿真软件modelsim中,错误 Error: already declared in this scope () 在定义这个信号前其它模块接口信号中调用了这个信号,modelsim仿真报错,通过把信号定义挪到调用模块前面问题解决. 可能是modelsim有要求,在块里边出现之前,必须先做声明.modelsim中,错误 Error: already declared in this scope (),布布扣,bubuko.com

Non-ASCII character '\xe8' in file xxx.py on line 8, but no encoding declared

使用网上某个python程序,编译时报错: File "xxx.py", line 8         SyntaxError: Non-ASCII character '\xe8' in file xxx.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 原因是缺少编码类型声明:no encoding declared 段首添加一行声明即可:

nginx: [emerg] the size 10485760 of shared memory zone "cache_one" conflicts with already declared size 0

注意配置段中的区域包含关系.proxycachepatch 要在proxy_cache前已经定义. what seems to be the problem? [emerg]: the size 52428800 of shared memory zone "media" conflicts with already declared size 0 in /etc/nginx/conf.d/cache.conf:5 configuration file /etc/nginx/nginx

mips交叉编译 error: 'PTHREAD_MUTEX_ERRORCHECK_NP' was not declared in this scope

在mips交叉编译时,设置互斥锁时,报以下错误,始终编译不过去. error: 'PTHREAD_MUTEX_ERRORCHECK_NP' was not declared in this scope 各种百度,相关信息一条也没有找到,实在没办法了,各种尝试. 打开linux平台和mips平台的pthread.h一对比才恍然大悟,原来在mips平台上,互斥锁类型使用的是: #define PTHREAD_MUTEX_NORMAL 0 #define PTHREAD_MUTEX_DEFAULT 0

Hint:Parameter 'in' is declared but never used in 'query_student'

1.错误描述 2.错误原因 create or replace procedure query_student(in id int) is begin select * from t_stu_info t where t.id = id; end query_student; 编写Oracle存储过程时,传参时in.参数和参数类型位置不对 3.解决办法 create or replace procedure query_student(id in int) is begin select * f

解决Cygwin编译cocos2dx 遇到的 error: 'UINT64_C' was not declared in this scope 问题

环境工具:Win10.VS2013.cocos2d-x-2.2.6.Cygwin.ADT 问题来源:写了一个小游戏,VS2013上运行成功,就尝试着打包apk,项目导入到ADT里面,添加了cocos2dx lib库以后,讨厌的红x消失,下来就是在cygwin里面预编译得到xxx.so文件了,但是问题来了,报错!!! jni/../../Classes/GameLayer.cpp:227:46: error: 'UINT64_C' was not declared in this scope 怎么

python出现SyntaxError: Non-ASCII character '\xe6' in file 打印日期.py on line 1, but no encoding declared;

刚开始学习python,照着书上敲的代码: #根据给定的年月日以数字的形式打印出来 months = [ 'January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ] #以1-31的数字作为结尾的列表 endings = ['st', 'nd', 'rd'] + 17 * ['th'] + ['st', 'nd',

cannot be translated into a null value due to being declared as a primitive type. Consid

1 严重: Servlet.service() for servlet [note-portal] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Optional long parameter 'noteBookId' is present but cannot be translated into a

解决Android Studio下Element layer-list must be declared问题

近期将一个项目从Eclipse转到Android Studio. 项目中使用了环信demo中的一些xml资源,转换后发现color资源目录下诸如layer-list或者shape等标签报Element xxx must be declared错误,大意就是layer-list或者shape这些标签未定义. layer-list或者shape等这些标签是经常使用的标签,Android Studio竟然报未定义错误,在Eclipse中却没有这个问题.网上不少人说这是Android Studio的一个