opencl on imx6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

opencl on imx6

Jump to solution
3,913 Views
dhananajysharma
Contributor II

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

Labels (2)
Tags (2)
1 Solution
2,529 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

View solution in original post

0 Kudos
11 Replies
2,530 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 Kudos
2,533 Views
anushreemoholka
NXP Employee
NXP Employee

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?

0 Kudos
2,533 Views
anushreemoholka
NXP Employee
NXP Employee

Hi Julien,

Did you get GPU libraries from another BSP?

If so you cannot run APP unless you use same kernel.

Let me know.

Thanks,

Anushree

0 Kudos
2,533 Views
julienb
Contributor II

Hi,

No, GPU librairies comes from the generated builroot filesystem, as the gpu-vivante examples.

Julien

0 Kudos
2,533 Views
anushreemoholka
NXP Employee
NXP Employee

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

0 Kudos
2,533 Views
julienb
Contributor II

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

0 Kudos
2,533 Views
anushreemoholka
NXP Employee
NXP Employee

Hi Dhananjay,

Can you send me your cl.h file?

Thanks,

Anushree

0 Kudos
2,533 Views
anushreemoholka
NXP Employee
NXP Employee

Yes, Let me simulate his condition on my board then I will comment on it.

0 Kudos
2,533 Views
julienb
Contributor II

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.

0 Kudos
2,533 Views
dhananajysharma
Contributor II

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 !

0 Kudos
2,533 Views
andre_silva
NXP Employee
NXP Employee

anushreemoholkar​,  can you take a look on this issue ?

thanks,

Andre