OpenCL not working in Linux 3.14.28 version

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

OpenCL not working in Linux 3.14.28 version

989 次查看
mohamedsarjoond
Contributor III

Dear team,

 

A sample helloworld OpenCL application was tested in iMx6 platform for linux kernel 3.10.17 and in 3.14.28 versions

I have attached the application

 

In 3.10.17:

When this application was ran in 3.10.17 it ran successfully without any error.

 

Linux 3.10.17

The same application ran in 3.14.28 in order to see whether performance vice improvement is there. But it didn't ran. it showed segmentation fault at line no 58 (clGetPlatformIDs(1, &cpPlatform, NULL)

 

What could be causing this issue.

I saw in Community that 3.14.28 has GPU driver upgraded so through to give a try but it didn't went well

Any suggestions could be greatly helpful

 

we used poky 1.5.1 cross compiler for compilation

 

Thanks in advance,

Sarjoondeen.

Original Attachment has been moved to: helloworld.c.zip

标记 (2)
0 项奖励
回复
2 回复数

672 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Have you try 3.14.52?

0 项奖励
回复

672 次查看
hiromiyokoo
Contributor II

Similar problem, Linux version 3.14.61. Running Yocto included gpu-viv samples. For example:

/opt/viv_samples/cl11/UnitTest/clinfo

gives:

CL_PLATFORM_NAME: Vivante OpenCL Platform

CL_PLATFORM_PROFILE: EMBEDDED_PROFILE

CL_PLATFORM_VERSION: OpenCL 1.1

CL_PLATFORM_EXTENSIONS: cl_khr_icd

and then:

Error # -30 at line 227 in file main.cpp

(meaning something like "resource not available").

Same for other openCL examples.

 

What could be the problem?

0 项奖励
回复