Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Device Function #869

Closed
kelvinxu opened this issue Aug 6, 2014 · 2 comments
Closed

Invalid Device Function #869

kelvinxu opened this issue Aug 6, 2014 · 2 comments

Comments

@kelvinxu
Copy link

kelvinxu commented Aug 6, 2014

I am getting a similar problem #138, running make runtest.


[----------] 9 tests from ConvolutionLayerTest/0, where TypeParam = float
[ RUN ] ConvolutionLayerTest/0.TestGPUSimpleConvolutionGroup
F0806 12:02:26.552108 4388 im2col.cu:54] Check failed: error == cudaSuccess (8 vs. 0) invalid device function
*** Check failure stack trace: ***
@ 0x2b05a7478b7d google::LogMessage::Fail()
@ 0x2b05a747ac7f google::LogMessage::SendToLog()
@ 0x2b05a747876c google::LogMessage::Flush()
@ 0x2b05a747b51d google::LogMessageFatal::~LogMessageFatal()
@ 0x634fe2 caffe::im2col_gpu<>()
@ 0x62074d caffe::ConvolutionLayer<>::Forward_gpu()
@ 0x4790ef caffe::ConvolutionLayerTest_TestGPUSimpleConvolutionGroup_Test<>::TestBody()
@ 0x58b0ed testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x582f11 testing::Test::Run()
@ 0x582ff6 testing::TestInfo::Run()
@ 0x583137 testing::TestCase::Run()
@ 0x58348e testing::internal::UnitTestImpl::RunAllTests()
@ 0x58ac6d testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x58256e testing::UnitTest::Run()
@ 0x4434dd main
@ 0x2b05a97f076d (unknown)
@ 0x4481ad (unknown)
make: *** [runtest] Aborted


Was anyone else able to resolve this issue?

@shelhamer
Copy link
Member

invalid device function indicates that you have a CUDA / GPU incompatibility. It could be

  • nvcc isn't compiling Caffe for the architecture of your card. see Makefile.config to set your arch.
  • your GPU is too old
  • your CUDA driver is too old

Please continue the discussion on the caffe-users mailing list. As of the latest release we prefer to keep issues reserved for Caffe development. Thanks!

@vamsus
Copy link

vamsus commented Mar 10, 2017

I am facing a similar error. @Shelmar using latest CUDA version (8.0) with enabled GPU Nvidia Geforce 820M. How to change the CUDA arch.

[ RUN ] TanHLayerTest/2.TestTanH
F0310 07:19:41.605973 3025 tanh_layer.cu:26] Check failed: error == cudaSuccess (8 vs. 0) invalid device function
*** Check failure stack trace: ***
@ 0x7f5cb33b75cd google::LogMessage::Fail()
@ 0x7f5cb33b9433 google::LogMessage::SendToLog()
@ 0x7f5cb33b715b google::LogMessage::Flush()
@ 0x7f5cb33b9e1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f5cb162f2aa caffe::TanHLayer<>::Forward_gpu()
@ 0x481379 caffe::Layer<>::Forward()
@ 0x7b1320 caffe::TanHLayerTest<>::TestForward()
@ 0x8e1cb3 testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x8db2ca testing::Test::Run()
@ 0x8db418 testing::TestInfo::Run()
@ 0x8db4f5 testing::TestCase::Run()
@ 0x8dc7cf testing::internal::UnitTestImpl::RunAllTests()
@ 0x8dcaf3 testing::UnitTest::Run()
@ 0x46693d main
@ 0x7f5cb0d3b830 __libc_start_main
@ 0x46dfd9 _start
@ (nil) (unknown)
Makefile:532: recipe for target 'runtest' failed
make: *** [runtest] Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants