I have installed APP SDK 2.4 x64 on Windows 7 x64-bit. Then ever I try run any sample it gives me this error:
BUILD LOG
************************************************
Internal error: Link failed.
Make sure the system setup is correct.
************************************************
Error: Program::build() failed. Error code : CL_BUILD_PROGRAM_FAILURE
My hardware configuration ASUS K50I Series notebook, Pentium(R) Dual-Core CPU T4400 @ 2.20GH (it has SSE3, checked), NVIDIA GeForce 310M (OpenCL 1.0 not used, sample falling back to CPU), 3Gb DD3 RAM.
How to check "the system setup is correct"?
clinfo.exe gives this:
Number of platforms: 2
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.0 CUDA 4.0.1
Platform Name: NVIDIA CUDA
Platform Vendor: NVIDIA Corporation
Platform Extensions: cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_d3d9_sharing cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices cl_khr_d3d10_sharing
Platform Name: NVIDIA CUDA
Number of devices: 1
Device Type: CL_DEVICE_TYPE_GPU
Device ID: 4318
Max compute units: 3
Max work items dimensions: 3
Max work items[0]: 512
Max work items[1]: 512
Max work items[2]: 64
Max work group size: 512
Preferred vector width char: 1
Preferred vector width short: 1
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 0
ERROR: clGetDeviceInfo(-30)
I swear, my next CPU and GPU will be AMD and ATI, but please help with these 🙂
You don't need AMD APP SDK for detecting your NVIDIA GPU. Try installing latest NV SDK and seek some help at NV forums if you still face some problem.
Thanks
No, I don't want to use NV OpenCL since it is only 1.0, want to use AMD OpenCL 1.1 on CPU. Previous ATI Steam SDK worked fine.
Even then I try "--device cpu".
AMD APP\samples\opencl\bin\x86\Template.exe --device cpu
Platform 0 : NVIDIA Corporation
Platform 1 : Advanced Micro Devices, Inc.
Selected Platform Vendor : Advanced Micro Devices, Inc.
Device 0 : Pentium(R) Dual-Core CPU T4400 @ 2.20GHz
BUILD LOG
************************************************
Internal error: Link failed.
Make sure the system setup is correct.
************************************************
Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE
Intel OpenCL SDK requires SSE4.1 and SSE4.2, I don't have these.
okay. Are you sure ,you have installed all the components of AMD APP SDK.
Also you can try to remove the NV implementation and have a fresh SDK installation.
Reinstalled APP SDK 2.4. It is working now!