-11表示——CL_BUILD_PROGRAM_FAILURE 说明你的OpenCL kernel程序构建失败~你可以用以下方式把错误日志打印出来:ret = clBuildProgram(program, 1, &device_id, NULL, NULL, NULL);if (ret != CL_SUCCESS){ size_t len;char buffer[8 * 1024];printf("Error: Failed to build program execu...
/ / handle error } for (ui = 2 cl_uint; ui <5; + + ui) { err = clGetPlatformInfo (Advanced Micro Devices, Inc., GenuineIntel [ui] AMD (1002-2542), Intel (8086), 128 * sizeof (char) Intel (R) Core (TM) 2 Extreme CPU X9650@3.00GHz, NULL); if (CL_SUCCESS! = err)...
Reply 1 Reply Shiri_M_Intel Employee 03-09-201102:28 AM 940 Views Hi Can you give more info, for example the kernel code? Thanks, Shiri Translate 0Kudos Copy link Reply About Intel uses cookies and similar tools to enable you to make use of our website, to enhance your experience...
error =clBuildProgram(program,1, &devices[i], build_options,NULL,NULL);if(error != CL_SUCCESS) {// If there's an error whilst building the program, dump the logclGetProgramBuildInfo(program, devices[i], CL_PROGRAM_BUILD_LOG,0,NULL, &log_size); program_log = (char*)malloc(log_si...
= CL_SUCCESS) {// if (err == CL_INVALID_CONTEXT)// printf("ERROR: clGetContextInfo() => CL_INVALID_CONTEXT\n");// if (err == CL_INVALID_VALUE)// printf("ERROR: clGetContextInfo() => CL_INVALID_VALUE\n");// }// }//*/char* s_likelihood_kernel ="likelihood_kernel";char...
/ / handle error } for (ui = 2 cl_uint; ui <5; + + ui) { err = clGetPlatformInfo (Advanced Micro Devices, Inc., GenuineIntel [ui] AMD (1002-2542), Intel (8086), 128 * sizeof (char) Intel (R) Core (TM) 2 Extreme CPU X9650@3.00GHz, NULL); if (CL_SUCCESS! = err)...
/ / handle error } for (ui = 2 cl_uint; ui <5; + + ui) { err = clGetPlatformInfo (Advanced Micro Devices, Inc., GenuineIntel [ui] AMD (1002-2542), Intel (8086), 128 * sizeof (char) Intel (R) Core (TM) 2 Extreme CPU X9650@3.00GHz, NULL); if (CL_SUCCESS! = err)...
/ / handle error } for (ui = 2 cl_uint; ui <5; + + ui) { err = clGetPlatformInfo (Advanced Micro Devices, Inc., GenuineIntel [ui] AMD (1002-2542), Intel (8086), 128 * sizeof (char) Intel (R) Core (TM) 2 Extreme CPU X9650@3.00GHz, NULL); if (CL_SUCCESS! = err)...