OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
公告
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.

Intel kernel builder problem

Piyush_K_
初学者
560 次查看

hi All,

I am new to open cl and have installed intel open cl sdk . After the installation, I have tried writing some open cl code  in the intel kernel builder program after checking all the parameters and environment variables.  The program is throwing the same error again  and again that is

Setting target instruction set architecture to: Default (Advanced Vector Extension (AVX)) OpenCL

Intel CPU device was found!

Device name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz

Device version: OpenCL 1.2 (Build 82248)

Device vendor: Intel(R) Corporation

Device profile: FULL_PROFILE

Compilation started

1:2:9: fatal

error: 'CL/cl.h' file not found Compilation failed

 

 

 

any help would be of great use

thanks

Piyush

 

0 项奖励
3 回复数
Yuri_K_Intel
员工
560 次查看

Hi Piyush,

Could you please post the kernel you're trying to compile with the Kernel Builder?

For me it looks like your kernel contains '#include CL/cl.h' line which is wrong - you should include this file in the host part of the program, while Kernel Builder compiles only the kernel part. For example, try to compile a dummy kernel:

__kernel void foo () { return; }

Thanks,

Yuri

0 项奖励
Piyush_K_
初学者
560 次查看

@ yuri..

Yes, I am writing the whole line as you are saying... I did not  knew that the kernel builder executes the kernel program only

thanks for the help

 

 

0 项奖励
Piyush_K_
初学者
560 次查看

@ yuri

Can u tell me how to link the library files in visual studio as I am getting the LNK error : unresolved externals _someFuncName;

I did try to link it as project property->configurations->linker->input additional library and typed the complete path of the OpenCL64.lib

But still it is gibing the same error.......

 

0 项奖励
回复