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
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>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 ==========
Which OpenCL release you have installed on your system?
To set the expectation right - OpenCL1.2 feature is supported on the platform you are using. Also, GPU processing is not supported on this platform. You can get details from "system requirement" section in the release notes - https://software.intel.com/en-us/articles/opencl-code-builder-release-notes. Also, would recommend you to check "known limitation" section since your system is a pretty old configuration.
Hope this information helps.
I believe you have an outdated CPU. I don't think switching to VS2015 will help. You will need a different computer, preferably from 2012 or later. 2013 or later highly recommended.
Have a good luck !