unti test Layer.WarpCTCLayer fails
Created by: wangkuiyi
Is the follow errors due to that we didn't integrate the building and installation of WarpCTC into our cmake-based building system?
If so, are we supposed to integrate the building and installation procedures as described here into our Dockerfiles?
[ RUN ] Layer.WarpCTCLayer
I1210 17:42:22.819157 12660 test_WarpCTCLayer.cpp:205] layerSize=10 batchSize=1 normByTimes = 0 useGpu=0
W1210 17:42:22.820042 12660 hl_dso_loader.cc:97] Failed to find dynamic library: /paddle/warp-ctc/build/libwarpctc.so (/paddle/warp-ctc/build/libwarpctc.so: cannot open shared object file: No such file or directory)
F1210 17:42:22.820751 12660 hl_dso_loader.cc:104] Check failed: nullptr != *dso_handle Failed to find dynamic library: libwarpctc.so (libwarpctc.so: cannot open shared object file: No such file or directory)
Please specify its path correctly using one of the following ways:
Method 1. set cuda and cudnn lib path at runtime. http://www.paddlepaddle.org/doc/ui/cmd_argument/argument_outline.html
For instance, issue command: paddle train --use_gpu=1 --cuda_dir=/usr/local/cuda/lib64 --cudnn_dir=/usr/local/cudnn/lib ...
Method 2. set environment variable LD_LIBRARY_PATH on Linux or DYLD_LIBRARY_PATH on Mac OS.
For instance, issue command: export LD_LIBRARY_PATH=...
Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled. However, method 1 always work well.
*** Check failure stack trace: ***
@ 0x7fc7aecb4daa (unknown)
@ 0x7fc7aecb4ce4 (unknown)
@ 0x7fc7aecb46e6 (unknown)
@ 0x7fc7aecb7687 (unknown)
@ 0x79eea0 GetWarpCTCDsoHandle()
@ 0x7fc7afacca80 __GI___pthread_once
@ 0x79c3b1 std::call_once<>()
@ 0x79bb0a hl_warpctc_init()
@ 0x524068 paddle::WarpCTCLayer::forward()
@ 0x51abdf createWarpCTCLayer()
@ 0x51b5b1 Layer_WarpCTCLayer_Test::TestBody()
@ 0x7bbbb6 testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@ 0x7b6bfc testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x7a3d45 testing::Test::Run()
@ 0x7a44c0 testing::TestInfo::Run()
@ 0x7a4a80 testing::TestCase::Run()
@ 0x7a96da testing::internal::UnitTestImpl::RunAllTests()
@ 0x7bd100 testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@ 0x7b7ba8 testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x7a84d7 testing::UnitTest::Run()
@ 0x50df30 main
@ 0x7fc7adec0f45 (unknown)
@ 0x51868f (unknown)
@ (nil) (unknown)