I can just run them , they are already compiled so I usually debug them to know whats happening in the back ground, I just wanna know after configuring visual studio for opencl and amd gpu , why it does not work ?
In a separate Project! Below is the code !
int main(int argc, char **argv){
cl_platform_id platform;
cl_device_id device;
cl_context context;
cl_program program;
cl_kernel kernel;
cl_command_queue queue;
cl_mem kernelBuffer;
FILE* programHandle;
char *programBuffer;
char *programLog;
size_t programSize;
char hostBuffer[32];
clGetPlatformIDs(1, &platform, NULL);
clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL);
context= clCreateContext(NULL, 1, &device, NULL, NULL, NULL); // This bold line throws unhandled exception saying that memory access violation , as mention in the Question and the program breaks!
Well by the way i m running this code in Visual Studio 2013, Windows 8, 64 bit , Amd Raedon 6770,
And i configured the visual sudio project settings following some tutorial on a website ! Thanks for the response !