I have recently purchased Quradcore imx6 wandboard
i have installed linux 3.10 on board
when i am trying to execute opencl program on board it is saying segment fault for every program of OpenCL.
my make file is
INCLUDE= /home/opencl_inc/include/
SRC= .
OPENCL_LIB = -lGAL -lOpenCL
all:
/home/compiler/gcc-linaro-arm-linux/bin/arm-linux-gnueabihf-gcc $(CFLAGS) -I. -I/$(INCLUDE) -L. -L/home/opencl_inc/lib opencl_test.c $(OPENCL_LIB) -o cl_sample
the program is getting compiled successfully and creates binary for it without any error.
also for other sample programm getting error related to clGetPlatformID clCreateContext, clEnqueNDRangeKernel ..
any help will be highly appreciable.
Original Attachment has been moved to: opencl_test.c.zip
已解决! 转到解答。
Hi Julian,
Can you use FSL BSP and check if the any other application is running ?
Please let me know what are the errors if you use FSL BSP?
In this BSP GPU binaries are correctly packaged together with correct kernel?
Hi,
Can you run any other application that makes use of GPU like TIGER app?
Does your linux distribution already came with the gpu drivers or you get it from other BSP?
Can you send me your complete package so that I can reproduce issue on my side?
Thanks,
Anushree
Hi,
I can't run any of GPU app (I only use a minimal buildroot without GUI), tiger creates a Window if I remember so it's not going to work.
I tried so add some missing things about in kernel compilation but I still have the same problem.
Here are my config files for both buildroot and kernel configuration. The other files are log errors I get when launching examples.
I'm open to any suggestions, if someone has an idea.
Thanks in advance,
Julien
Hi,
I have a custom imx6 board designed from Nitrogen6x and I have a similar problem. All tests included in viv_samples/cl11/Unittest are not working. For example :
./functions_and_kernels
[ 1] HAL user version 4.6.9 build 6622 Jul 18 2013 15:05:32
[ 2] HAL kernel version 4.6.9 build 1210
TESTS STARTED...
Segmentation fault
drm and vivante module are loaded when checking with lsmod.
If I use another distribution like linaro-precise-alip-20121124-519.tar.gz, it's working.
There must be something missing but I don't know what ? Any idea ?
I read a lot of things about galcore module. It doesn' appear in lsmod but if I type ps in console, there are 3 galcore daemon process.
PS : I'm working with arm 3.0.35 Kernel and Buildroot 2014.05.
After a research i found galcore module is required for processing OPENCL application.
i checked in /usr/dev/ galcore is there.
but still opencl is segment fault.
any suggestion...
i am using inux version 3.0.101 !