- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I am using Enclustra Mercury AA1 arria10 SoC to implement a opencl application for FPGA. I used the buildroot and bsp-altera provided by Enclustra to build a customer linux and was able to boot the linux in AA1 SoC. I can run a software built with buildroot cross-compile toolchain in linux without issue.
Now I want to add OpenCL RTE aocl-pro-rte-17.1.0-240.arm32 to my linux. I ran source init_opencl.sh without issue. After I ran aocl diagnose, the linux gives an error "/root/aocl-pro-rte-17.1.0-240.arm32/host/arm32/bin/aocl: not found". I can see the file aocl is there and has right permission +x for all users. If I ran " /root/aocl-pro-rte-17.1.0-240.arm32/host/arm32/bin/aocl" directly, it gives error "-sh: /root/aocl-pro-rte-17.1.0-240.arm32/host/arm32/bin/aocl: not found".
What is the problem? And how can I fix it?
Thanks,
Michael
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found the issue was caused by missing C++ and some other libraries in buildroot-linux. After I enabled them, I can ran aocl diagnose. But it didn't detect any device. One thing is I didn't copy aclsoc_drv.ko file to device linux because I can't built it yet. Here is my source init_opencl.sh output:
# source ./init_opencl.sh
# env
USER=root
SHLVL=1
LD_LIBRARY_PATH=/root/aocl-pro-rte/host/arm32/lib:/root/aocl-pro-rte/board/a10soc/arm32/lib:
HOME=/root
PAGER=/bin/more
PS1=#
LOGNAME=root
TERM=vt100
AOCL_BOARD_PACKAGE_ROOT=/root/aocl-pro-rte/board/a10soc
PATH=/root/aocl-pro-rte/bin:/bin:/sbin:/usr/bin:/usr/sbin
SHELL=/bin/sh
INTELFPGAOCLSDKROOT=/root/aocl-pro-rte
PWD=/root
EDITOR=/bin/vi
# aocl diagnose
--------------------------------------------------------------------
Warning:
No devices attached for package:
/root/aocl-pro-rte/board/a10soc
--------------------------------------------------------------------
Call "aocl diagnose <device-names>" to run diagnose for specified devices
Call "aocl diagnose all" to run diagnose for all devices
# aocl diagnose all
I will try to build the kernel driver and try it again. Does the driver install /dev/acl or who install that?
Thanks.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page