CUDA errors when running a unit test not using GPU
Created by: wangkuiyi
I ran place_test on my MacBook Pro without GPU as follows. And it complains my CUDA driver version. It seems that paddle/majel
code should depend on the hl_
library at all.
λ 5bc09e2d12ea /paddle/build {develop} CTEST_OUTPUT_ON_FAILURE=1 ctest -R place_test
Test project /paddle/build
Start 63: place_test
1/1 Test #63: place_test .......................***Exception: Other 0.15 sec
I0531 18:58:54.387369 8100 Util.cpp:166] commandline: /paddle/build/paddle/majel/test/place_test
F0531 18:58:54.388157 8100 hl_cuda_device.cc:453] Check failed: cudaSuccess == cudaStat (0 vs. 35) Cuda Error: CUDA driver version is insufficient for CUDA runtime version
*** Check failure stack trace: ***
@ 0x9c2ccd google::LogMessage::Fail()
@ 0x9c5018 google::LogMessage::SendToLog()
@ 0x9c27db google::LogMessage::Flush()
@ 0x9c5eee google::LogMessageFatal::~LogMessageFatal()
@ 0x995660 hl_specify_devices_start()
@ 0x99586d hl_start()
@ 0x91928e paddle::initMain()
@ 0x611e83 main
@ 0x7fdfd1f26830 __libc_start_main
@ 0x612259 _start
@ (nil) (unknown)
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.30 sec
The following tests FAILED:
63 - place_test (OTHER_FAULT)
Errors while running CTest