Results 1 to 4 of 4

Thread: function clGetPlatformIDs returning error

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    3

    function clGetPlatformIDs returning error

    Hi

    I am having Nvidia Geforce 9500 GT card, i have updated the drivers and installed NVidia cuda tool kit along with opencl, available on the website.
    when i run the below code in my visual studio 2010. The function clGetPlatformIDs is returning -1001 and the value of the second argument of the function "test" is returned as NULL. I guess this means the device is not detected. Can some one please help in making my device getting detected.


    #include <CL/opencl.h>

    Code :
    int main(int argc, char **argv)
    {
     
    cl_platform_id test;
    cl_uint num;
    cl_uint ok = 1;
    cl_int result;
    result = clGetPlatformIDs(ok, &test, &num);
     
    return 0;
     
    }
    Ryagz

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    3

    Re: function clGetPlatformIDs returning error

    Can some one reply this, its urgent.

    Thanks in advance...

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    26

    Re: function clGetPlatformIDs returning error

    I cant say what the problem is but there does not seem to be anything wrong with your code at least. It compiles and runs as expected on my system (code::blocks/MinGW/Quadro FX3800).

    Without more information I guess my advise would be to make sure you have the correct drivers (also, drivers not necessarily to OpenCL but monitor/GPU related).

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    3

    Re: function clGetPlatformIDs returning error

    @Above Thanks for your reply, i found out where the problem is..

    I working on windows 2008 server, I was running my codes from remote desktop... Today i tried running the codes on the server terminal and it worked correctly, all other sdk examples also.

    Now my question is, is there any way to make the codes run properly with remote desktop connection also. Because we are about 7 users who connect to the server and do our codes. Do any one have any clue?

Similar Threads

  1. Replies: 2
    Last Post: 02-21-2013, 02:58 AM
  2. Replies: 1
    Last Post: 02-22-2010, 01:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •