' Noinline ' is not declared

Source: Internet
Author: User

CUDA 5.5, boost 1.55, update Caffe appears:
/boost_1_55_0/boost/assert.hpp:102: error: ?.oinline?.was not declared in this scope

See line 102th in/BOOST/ASSERT.HPP is
BOOST_NOINLINE void assertion_failed_msg(CharT const * expr, char const * msg, char const * function,
So the above error should be
/boost_1_55_0/boost/assert.hpp:102: error: boost_noinline was not declared in this scope

Google found that you need to add the following information:
CUDA_FLAGS_COMMON=-use_fast_math -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘

So, add the following line to the Makefile.config file:
CUDA_FLAGS_COMMON=-use_fast_math -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘

Then add the Cuda_flags_common defined above to the nvccflags in the makefile file:
Put NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
Switch
NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(CUDA_FLAGS_COMMON) $(COMMON_FLAGS)

You can also add them directly to the makefile without changing the Makefile.config file:
NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC -DBOOST_NOINLINE=‘__attribute__ ((noinline))‘ $(COMMON_FLAGS)

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

' Noinline ' is not declared

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.