PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error in API Hook on PGCL by the way of wrapper DLL.
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
SebD



Joined: 02 Jan 2008
Posts: 8

PostPosted: Tue Nov 27, 2012 1:33 am    Post subject: Reply with quote

Hello ckit,

Try adding an explicit load of OpenCLo library in JavalibOpenCL to see if it solves the issue:

System.loadLibrary ("OpenCLo");
System.loadLibrary ("OpenCL");

Best Regards
Seb
Back to top
View user's profile
ckit



Joined: 16 Jul 2012
Posts: 7

PostPosted: Wed Nov 28, 2012 1:35 pm    Post subject: Reply with quote

Hi.

Words were not enough int the previous post.
I wrote it.

I can hook other functions such as clCreateContext and clCreateCommandQueue and so on.
my program return an error (CL_INVALID_BINARY) when it reaches the clCreateWithBinary.
For this reason I think my program can load the library.

ckit
Back to top
View user's profile
SebD



Joined: 02 Jan 2008
Posts: 8

PostPosted: Thu Nov 29, 2012 7:45 am    Post subject: Reply with quote

Hi ckit,

Can you share your source code with me, to see if I can help ?

Seb
Back to top
View user's profile
ckit



Joined: 16 Jul 2012
Posts: 7

PostPosted: Mon Dec 03, 2012 4:13 am    Post subject: Reply with quote

Hi.

Sorry for late reply.
I'm really glad your help.

Too long to post all the code.
https://github.com/chikat/OclHookPGCL
I push jni directory in github.
Please put libOpenCLo.so was renamed from libOpenCL.so in this directory.

I've created a libOpenCL.so from these files by ndk-build.
Place the libOpenCL.so JavaLibOpenCL project that was created, I'm running NDKOclImageInverse.
However, an error occurs.

Thank you.

ckit
Back to top
View user's profile
SebD



Joined: 02 Jan 2008
Posts: 8

PostPosted: Mon Dec 10, 2012 8:16 am    Post subject: Reply with quote

Hi ckit,

Sorry for the late reply, but I can't use git with outside site. Can you provide me your source base as a .tgz archive for instance ?

Thanks
Seb
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group