Hi there, I'm having problems with running my own OpenCL program. For some reasons clGetPlatformIDs fails with error code -1001. I'm using Visual Studio 2010 and only wanna run OpenCL on my CPU. The weird thing is that all ATI Stream samples run fine without any problems. I cannot see what the difference between the two projects are.
CLInfo prints the following information:
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.0 ATI-Stream-v2.1 (145)
Platform Name: ATI Stream
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd
Platform Name: ATI Stream
Number of devices: 1
Device Type: CL_DEVICE_TYPE_CPU
Device ID: 4098
Max compute units: 4
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
Preferred vector width char: 16
Preferred vector width short: 8
Preferred vector width int: 4
Preferred vector width long: 2
Preferred vector width float: 4
Preferred vector width double: 0
Max clock frequency: 2659Mhz
Address bits: 32
Max memory allocation: 536870912
Image support: No
Max size of kernel argument: 4096
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: No
Round to +ve and infinity: No
IEEE754-2008 fused multiply-add: No
Cache type: Read/Write
Cache line size: 0
Cache size: 0
Global memory size: 1073741824
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Global
Local memory size: 32768
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue properties:
Out-of-Order: No
Profiling : Yes
Platform ID: 00ED946C
Name: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
Vendor: GenuineIntel
Driver version: 1.1
Profile: FULL_PROFILE
Version: OpenCL 1.0 ATI-Stream-v2.1 (145)
Extensions: cl_khr_icd cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_printf
Passed!
Please post your host side code.
Hi there, thanks for your reply.
I'm using a copy of the HelloCL.cpp. I have not changed anything in the file.
I have noticed when creating a new project with VS2010 that one has to change the runtime libs to "Multi-threaded Debug" for Debug builds. Normally I use the default which is "Multi-threaded Debug Dll". Also, in the sample code there are some preprocessor definitions missing, like _DEBUG or _WIN32. Is that intentional?
Thanks,
Christian
Hi there, I have created a new project and now everything works as expected. No idea what went wrong with my old project, though.
Christian