Results 1 to 3 of 3

Thread: clGetPlatformIDs error -1001 when called in PostgreSQL UDF

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    2

    clGetPlatformIDs error -1001 when called in PostgreSQL UDF

    I'm trying to write an OpenCL function that would be executed inside PostgreSQL. To do this i create DLL from my OpenCL code and link it to postgres using User-Defined Function mechanism. Everything goes well until clGetPlatformIDs is called. Function returns error -1001, which I read that indicates problem with finding OpenCL drivers.

    I've tried to compile the same code(i had to remove some postgres magic) to exe and runed it with success - all platforms were found correctly, so I assume that i have correctly set up SDK and drivers.

    I am runing PostgreSQL 9.1 on windows 7 x64. I am also using Nvidia CUDA SDK 4.2 with Visual Studio 2010 and running my code on GeForce GTS 450.

  2. #2
    Senior Member
    Join Date
    Oct 2012
    Posts
    165

    Re: clGetPlatformIDs error -1001 when called in PostgreSQL U

    have you tried using clew for dll lazy loading?

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    2

    Re: clGetPlatformIDs error -1001 when called in PostgreSQL U

    The problem is Session 0 Isolation in Windows 7, running on Linux solves the issue.
    http://stackoverflow.com/questions/1418 ... gresql-udf

Similar Threads

  1. Replies: 3
    Last Post: 11-02-2011, 09:28 PM
  2. clGetPlatformIDs Exception..
    By phoebe0105 in forum OpenCL
    Replies: 4
    Last Post: 04-20-2010, 05:02 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
  •