OpenCL environment : Couldn't open /dev/aocl0
Hello,
There is something wrong with the OpenCL environment of my custom BSP.
I created a custom BSP with only bridge hps2fpga (disable lwhps2fpga) by qsys (quartus standard 18.0) and compiled an OpenCL kernel, generated the binary file opencl.rbf by OpenCL SDK 18.0. Following the GSRD, I created the preloader, device tree, Linux kernel image (Linux 3.18) and so on.
To set the OpenCL environment, I follow the instructions on this site:
cross compile the aocl runtime driver with right kernel version and regenerate the aclsoc_drv.ko file. I run the init_opencl.sh file, including insmod aclsoc_drv.ko, it works well, I can find it by lsmod.
But when I execute "aocl program /dev/acl0 helloworld.aocx", it says:
Couldn't open /dev/acl0 device! Did you load the driver?
aocl program: Program failed.
And when I run "ls /dev", no acl0 listed there! How can I resolve this problem?
Thanks a lot.