-
Notifications
You must be signed in to change notification settings - Fork 152
Caffe - ERROR: Unable to create handle to FPGA #41
Comments
Are you running with sudo permissions?
Try xbsak query
…Sent from my iPhone
On Sep 23, 2018, at 7:11 AM, Sagar Dolas ***@***.***> wrote:
opendir: Path /sys/bus/pci/devices/0000:00:1d.0/drm does not exist or could not be read: No such file or directory
[0]user:0x1042:0x7:[xdma:2017.1.47:65535]
xclProbe found 1 FPGA slots with xocl driver running
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD65535
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
Is anyone aware of the problem.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I am running with sudo permission. Let me try xbsak query and update you. Thanks |
opendir: Path /sys/bus/pci/devices/0000:00:1d.0/drm does not exist or could not be read: No such file or directory You can see that, I run with root. xbsak query does not work as well. What else can I try ? |
I was trying to run the new developer notebook which was added recently from here: |
Doses any one has heads-up on this problem? |
Don't use ML SUITE AMI - use rather amazon FPGA developer AMI. It will work as expected. This is what I have done as well. |
Hi, I am not using the ML-suite AMI . Currently I am using FPGA developer AMI. Did you try to run the notebooks? |
Yeah, I can run them. What exactly are you facing ? Are you facing problem in launching Jupiter notebooks ? |
I was trying to run the developer lab from the below notebook. To run the jupyter notebooks I am using the start_ami.sh script . Can you tell me how you are opening the jupyter notebook ?Coz if I open the jupyter notebook with ML suite I get the following erro: |
Hey,
Sorry for the difficulty you are facing. In the very near future, there
will be a new ml-suite AMI which will have a workaround for the sudo issue.
It is currently going through Xilinx legal, and then it will pass through
Amazon's marketplace process. Please don't use the start_ami.sh script. I
should not have checked that in. It was just an experiment whilst
developing the new AMI. To use the notebooks on the FPGA Developer AMI:
Use the sudo hack to become root.
sudo su
source ~centos/.bashrc
conda activate ml-suite
source ml-suite/overlaybins/setup.sh aws
which jupyter // check to make sure you are using jupyter from within your
environment ~/anaconda2/envs/ml-suite/something
// If you are using some other jupyter do pip install jupyter
jupyter notebook --no-browser --ip=*
// Next you need to make sure that the port for your instance is open or
you won't be able to communicate w/ the notebook server. This involves
creating a security group.
// Finally it should just work when you go to <public_dns_name>:8888
…On Mon, Oct 1, 2018 at 11:56 AM adu81020799 ***@***.***> wrote:
Hi, I am not using the ML-suite AMI . Currently I am using FPGA developer
AMI. Did you try to run the notebooks?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AO_Gp7N-t4QUlYIpnEWtAGEXuaC1sKTTks5ugmVUgaJpZM4W1t1y>
.
|
Here is the output of commands i tried as per your reply. [centos@ip-172-31-62-130 ~]$ sudo su |
I'm not sure if this is the solution, but can you try to augment my
instruction with:
jupyter notebook --no-browser --allow-root --ip=*
If that doesn't work, I am clueless.
…On Tue, Oct 2, 2018 at 7:58 AM adu81020799 ***@***.***> wrote:
Here is the output of commands i tried as per your reply.
***@***.*** ~]$ sudo su
bash: conda: command not found...
***@***.*** centos]# source ~centos/.bashrc
(base) ***@***.*** centos]# conda activate ml-suite
(ml-suite) ***@***.*** centos]# source
ml-suite/overlaybins/setup.sh aws
make: Entering directory /home/centos/ml-suite/apps/yolo/nms' cd
./nms_20180209 && make make[1]: Entering directory
/home/centos/ml-suite/apps/yolo/nms/nms_20180209'
make[1]: Nothing to be done for all'. make[1]: Leaving directory
/home/centos/ml-suite/apps/yolo/nms/nms_20180209'
make: Leaving directory `/home/centos/ml-suite/apps/yolo/nms'
(ml-suite) ***@***.*** centos]# which jupyter
/home/centos/anaconda2/envs/ml-suite/bin/jupyter
(ml-suite) ***@***.*** centos]# jupyter notebook --no-browser
--ip=*
Traceback (most recent call last):
File "/home/centos/anaconda2/envs/ml-suite/bin/jupyter-notebook", line 11,
in
sys.exit(main())
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/jupyter_core/application.py",
line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/traitlets/config/application.py",
line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/traitlets/config/application.py",
line 87, in catch_config_error
return method(app, *args, **kwargs)
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/notebook/notebookapp.py",
line 1629, in initialize
self.init_webapp()
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/notebook/notebookapp.py",
line 1379, in init_webapp
self.jinja_environment_options,
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/notebook/notebookapp.py",
line 158, in *init*
default_url, settings_overrides, jinja_env_options)
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/notebook/notebookapp.py",
line 251, in init_settings
allow_remote_access=jupyter_app.allow_remote_access,
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/traitlets/traitlets.py",
line 556, in *get*
return self.get(obj, cls)
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/traitlets/traitlets.py",
line 535, in get
value = self._validate(obj, dynamic_default())
File
"/home/centos/anaconda2/envs/ml-suite/lib/python2.7/site-packages/notebook/notebookapp.py",
line 872, in _default_allow_remote
for info in socket.getaddrinfo(self.ip, self.port, 0, socket.SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known
(ml-suite) ***@***.*** centos]#
This is the same error which I was getting before.
Regards
Adarsh
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AO_Gp1_nXK63YmeRmA_xfr_aTJpIDcJ4ks5ug38LgaJpZM4W1t1y>
.
|
I tried the command , did not work. Thank you for the help. Even I am not able to find the root cause of it |
https://aws.amazon.com/marketplace/pp/B077FM2JNS New AMI is available. Jupyter will be running at startup. Go to publicDNS:8888 |
Same issue in ml suite v1.4: I am trying to run ml suite object_detection_yolov2.ipynb but I am getting this in step 6(https://github.com/Xilinx/ml-suite/blob/master/notebooks/object_detection_yolov2.ipynb): "ERROR: Unable to create handle to FPGA" in terminal, the error is : [XBLAS] # kernels: 1 In previous cell, step 5, I am getting a couple of "Exception 'Layer' object has no attribute 'pooling_param'". not sure if this related to this or not. I am using ml suite v1.4 in aws with CentOS Linux release 7.5.1804 Any idea how to fix it? |
opendir: Path /sys/bus/pci/devices/0000:00:1d.0/drm does not exist or could not be read: No such file or directory
[0]user:0x1042:0x7:[xdma:2017.1.47:65535]
xclProbe found 1 FPGA slots with xocl driver running
WARNING: AwsXcl - Cannot open userPF: /dev/dri/renderD65535
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
Is anyone aware of the problem.
Thanks
The text was updated successfully, but these errors were encountered: