#ifdef GPU_DEBUG
printf("Line %d.\n", __LINE__);
#endif
- cl_program program = clCreateProgramWithSource(GPU_context, 1, &gpu_mmul_cl, &gpu_mmul_cl_len, &err);
+ const char* ptr = (const char*)gpu_mmul_cl;
+ cl_program program = clCreateProgramWithSource(GPU_context, 1, &ptr, &gpu_mmul_cl_len, &err);
if (err != CL_SUCCESS)
{
fprintf(stderr, "GPU fatal error: clCreateProgramWithSource() failed.\n");