access violation error when running OpenCL sample examples

Discussion created by ryujakk on Mar 6, 2010
Latest reply on Sep 8, 2010 by drstrip
Unhandled exception at 0x00000000 in MatrixMultiplication.exe: 0xC0000005: Access violation.


I want to get started with OpenCL, but I am happy trouble setting up the basics. I get an "access violation error" whenever I try to run a sample example in Visual Studio. I've narrowed it down to the "clGetPlatformIDs" function that appears in:

    cl_uint numPlatforms;
    cl_platform_id platform = NULL;
    status = clGetPlatformIDs(0, NULL, &numPlatforms);


I've searched extensively for similar problems, but did not find anything pertinent... I've also completely uninstalled all ATI drivers to have a clean install, but that did not help either!

Here is my config: (I'll gladly give more if it can be of any help!)

- Sony VAIO fw laptop, with Windows 7 x64 and Mobility Radeon HD 4650

- Catalyst control center 2010.0202.2335.42270

- Radeon HD 4650 Driver 8.650.0.0

- Microsoft Visual Studio 2008, Version 9.2.210228 RTM

Thank you!