OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
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.
1722 Discussions

Invalid _CL_Platform error

bilal_a_1
Beginner
1,283 Views

Hi I am trying to run OpenCL on Intel 2310 core i3 2nd generation. I have configured VS 2013(Professional) for OpenCL.  When I try to create a new opencl project a message appers: 

"Failed to retrieve number of devices:-32(CL_Invalid_Platform)  "  

But it still creates the OpenCL project.When I run a simple hello world OpenCL  program.VS2013 doesn't builds it. gives following error

OUTPUT window:

1>------ Build started: Project: Opencl1, Configuration: Debug x64 ------
1>  Preprocessing: OpenCLFile.cl
1>  Ignoring -TARGETOS option - not supported for 64-bit version of this tool
1>  Setting target instruction set architecture to: Default (Advanced Vector Extension (AVX))
1>D:\MS Course\3rd Semster\Integrated Project\openCL codes\Opencl1\Opencl1\OpenCLFile.cl : error CL: Failed to get platform id...: 0 (CL_SUCCESS)
1>  Build failed!
1>  
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\IntelOpenCL.targets(98,5): error MSB3721: The command ""C:\Program Files (x86)\Intel\OpenCL SDK\5.3\bin\x64\ioc64.exe" -cmd=build -input="D:\MS Course\3rd Semster\Integrated Project\openCL codes\Opencl1\Opencl1\OpenCLFile.cl" -output="x64\Debug\OpenCLFile.out" -VS -device=CPU -simd=default -targetos=current        -bo="           "" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

   

0 Kudos
1 Reply
Surbhi_M_Intel
Employee
1,283 Views

Duplicate of https://software.intel.com/en-us/forums/opencl/topic/605570 issue, hence closing it. 

-Surbhi

0 Kudos
Reply