-
Notifications
You must be signed in to change notification settings - Fork 51
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
make runtest failing #3
Comments
Hi @sammhho, thanks for the interest in the project! Sorry for the delay I've been wrapping up my master's lately (which includes making some very large updates to this project which should be pushed here soon). What changes did you make to Makefile? Did you rebuild the lrn layers for the current version of SDAccel that you're using? Also what OS are you using? This work was mostly tested using SDAccel 2015.3 running on CentOS (either of the SDAccel recommended CentOS distributions should be fine). I've used it with Ubuntu in the past but it takes quite a bit of effort to get it working correctly. I've tried running the specific tests on my end using SDAccel 2016.3 (software emulation only) and it seems to be working correctly. Steps to reproduce: make all Build the kernels, I used the commands below (in the source directory) Copy the .xclbin files into .build_release/opencl/src/caffe/layers/ : Run the tests: |
Hi @dicecco1 thx for replying,
Regards, good luck with your master's ;-) |
Thanks for the feedback, I was meaning to wrap the calls with OCL_CHECK too (they added those after 2016.1 I think).
Thanks a lot! |
Hello, I am interested in your project, and I try to run your program, I have installed the SDAccel, but it need licence, I can't find the SDAccel licence on xilinx.com/getProduct , can you share the way how you got it? |
Do you have a development board? To get the license you need to pay for it, I think you would need to contact Xilinx about licensing directly. Alternatively, AWS F1 instances support SDAccel now so you could give it a try there, I've used it for a smaller kernel, but I was having difficulty getting larger kernels to go through P&R last time I tried. |
Thanks |
Hi @dicecco1 ,
Came across this work on SDAccel forum and read your paper, thx for open-sourcing!
After tweaking around the Makefile I am able to finish Make-ing the codes,
Make runtest
passed these tests below, with sw_emu mode of SDAccel, and using the sw xclbins:oclConvolutionLayerTest/1
oclConvolutionLayerTest/3
OCLPoolingLayerTest/1
OCLPoolingLayerTest/3
but it also failed some tests, like:
[----------] 6 tests from BlobSimpleTest/1, where TypeParam = double
[ RUN ] BlobSimpleTest/1.TestInitialization
[ OK ] BlobSimpleTest/1.TestInitialization (0 ms)
[ RUN ] BlobSimpleTest/1.TestPointersCPUOCL
src/caffe/test/test_blob.cpp:47: Failure
Value of: this->blob_preshaped_->ocl_data()
Actual: false
Expected: true
src/caffe/test/test_blob.cpp:49: Failure
Value of: this->blob_preshaped_->mutable_ocl_data()
Actual: false
Expected: true
[ FAILED ] BlobSimpleTest/1.TestPointersCPUOCL, where TypeParam = double (0 ms)
another one, with the data mismatch lines repeating many times:
[----------] 3 tests from OCLLRNLayerTest/2, where TypeParam = caffe::GPUDevice<float>
[ RUN ] OCLLRNLayerTest/2.TestForwardAcrossChannelsLRN2
src/caffe/test/test_lrn_layer.cpp:614: Failure
The difference between this->blob_top_->cpu_data()[i] and top_reference.cpu_data()[i] is 0.10926561057567596, which exceeds this->epsilon_, where
this->blob_top_->cpu_data()[i] evaluates to 0,
top_reference.cpu_data()[i] evaluates to -0.10926561057567596, and
this->epsilon_ evaluates to 9.9999997473787516e-06.
...
[ FAILED ] OCLLRNLayerTest/2.TestForwardAcrossChannelsLRN2, where TypeParam = caffe::GPUDevice<float> (11173 ms)
[ RUN ] OCLLRNLayerTest/2.TestForwardAcrossChannelsLRN1
*** Aborted at 1501926253 (unix time) try "date -d @1501926253" if you are using GNU date ***
PC: @ 0x7f762f241f54 clWaitForEvents
*** SIGSEGV (@0x0) received by PID 31881 (TID 0x7f7621f11720) from PID 0; stack trace: ***
@ 0x3d0dc0f7e0 (unknown)
@ 0x7f762f241f54 clWaitForEvents
@ 0x7f762e1e23d1 caffe::OCLLRNLayer<>::Call_ocl()
...
and then the test ended due to the segmentation fault.
Any ideas? SDAccel version was 2016.1.
The text was updated successfully, but these errors were encountered: