-
Notifications
You must be signed in to change notification settings - Fork 152
Failed to find an OpenCL platform YOLOv2 Demo on AWS #20
Comments
Eric,
I'm assuming that you are trying to run on the FPGA Developer AMI.
At the moment, that is the right place to start.
Unfortunately there is a little bit of setup required before you can run.
Do the following:
1. git clone https://github.com/aws/aws-fpga.git
2. cd aws-fpga
3. source sdaccel_setup.sh
…On Thu, Jul 19, 2018 at 8:51 AM, esberglu ***@***.***> wrote:
I'm getting the following error running the yolo demo app on AWS with
"./run.sh aws e2e". The compile and quantization steps appear to be
completing successfully, xyolo is failing.
- NOTE * Because of #19 <#19>
I am using the yolo_deploy_608.prototxt and yolov2.caffemodel found in the
zip file from the model download page, not the versions found in
ml-suite/models/yolov2/caffe/fp32/
INFO: Entering XYOLO WITH
Finished batch 1
[XBLAS] # kernels: 1
[0]user:0xf010:0x1d51:[???:??:0]
xclProbe found 1 FPGA slots with xocl driver running
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD0
WARNING: AwsXcl isGood: invalid user handle.
WARNING: xclOpen Handle check failed
[0]user:0xf010:0x1d51:[???:??:0]
device[0].user_instance : 0
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD0
WARNING: AwsXcl isGood: invalid user handle.
ERROR: xclOpen Handle check failed
ERROR: Failed to find an OpenCL platform
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AO_GpxdFCnPdWP9QUtr-H1wMpdZBsdJhks5uIKsagaJpZM4VWqF3>
.
|
Thanks again, I was able to complete the yolo demo with this fix and #19, with some caveats. The sdaccel_setup.sh script requires that you are using the 2017.4 version on Xilinx SDx [1] [2]. For now I just changed those to checks to 2017.1, which is the version found on the AWS instance. The Makefile then was unable to find the libstdc++.so file in the expected location [3]. For now I just searched the filesystem for a libstdc++.so and changed the path in the install command to point that location. After that the sdaccel_setup.sh ran to completion and I was able to finish the yolo demo. However I am not confident that either of those solutions is the "correct" way to be doing things. Perhaps you are aware of a better solution. [1] https://github.com/aws/aws-fpga/blob/2fdf23ffad944cb94f98d09eed0f34c220c522fe/sdaccel_setup.sh#L160 |
Eric,
When did you start your AMI? The current FPGA Developer AMI should come with the 2017.4 files that play nicely with the latest aws-fpga repo code. The xcllbins included with ml-suite were generated for the 2017.4 dynamic dsa/shell. Looks like they are backward compatible to 2017.1 based on your testing. I think you should consider creating a fresh FPGA developer instance.
…Sent from my iPhone
On Jul 20, 2018, at 6:49 AM, esberglu ***@***.***> wrote:
Thanks again, I was able to complete the yolo demo with this fix and #19, with some caveats.
The sdaccel_setup.sh script requires that you are using the 2017.4 version on Xilinx SDx [1] [2]. For now I just changed those to checks to 2017.1, which is the version found on the AWS instance.
The Makefile then was unable to find the libstdc++.so file in the expected location [3]. For now I just searched the filesystem for a libstdc++.so and changed the path in the install command to point that location. After that the sdaccel_setup.sh ran to completion and I was able to finish the yolo demo. However I am not confident that either of those solutions is the "correct" way to be doing things. Perhaps you are aware of a better solution.
[1] https://github.com/aws/aws-fpga/blob/2fdf23ffad944cb94f98d09eed0f34c220c522fe/sdaccel_setup.sh#L160
[2] https://github.com/aws/aws-fpga/blob/2fdf23ffad944cb94f98d09eed0f34c220c522fe/SDAccel/Makefile#L39
[3] https://github.com/aws/aws-fpga/blob/2fdf23ffad944cb94f98d09eed0f34c220c522fe/SDAccel/Makefile#L81
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ah I was using the Xilinx ML Suite AMI, not the FPGA Developer AMI. Sounds like that's my problem. I'll give it a try with FPGA Developer AMI. |
Hi Eric, sorry about that. We are in the process of updating the AMI to support the latest ML Suite. Should be ready shortly, but as you can start with the FPGA Dev AMI today. Thanks, |
It worked with modifications and no issues with the FPGA Dev AMI. Thanks! |
I'm getting the following error running the yolo demo app on AWS with "./run.sh aws e2e". The compile and quantization steps appear to be completing successfully, xyolo is failing.
INFO: Entering XYOLO WITH
Finished batch 1
[XBLAS] # kernels: 1
[0]user:0xf010:0x1d51:[???:??:0]
xclProbe found 1 FPGA slots with xocl driver running
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD0
WARNING: AwsXcl isGood: invalid user handle.
WARNING: xclOpen Handle check failed
[0]user:0xf010:0x1d51:[???:??:0]
device[0].user_instance : 0
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD0
WARNING: AwsXcl isGood: invalid user handle.
ERROR: xclOpen Handle check failed
ERROR: Failed to find an OpenCL platform
The text was updated successfully, but these errors were encountered: