|
|
Home » Developing U++ » UppHub » OpenCL
OpenCL [message #33297] |
Sat, 23 July 2011 06:32 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
Is there any interest in UPP-friendly OpenCL wrappers?
APUs are coming ... GPUs are already here ...
Regards,
Novo
|
|
|
|
|
Re: OpenCL [message #33303 is a reply to message #33301] |
Sat, 23 July 2011 18:42 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
281264 wrote on Sat, 23 July 2011 12:13 | I am interested, although I only explored OpenCL superficially. It looks promising, does it not?
But, there is already a C++ wrapper for OpenCL, isn’t there?
What have you in mind?
Javier
|
I mean replacement for this C++ wrapper. IMHO, wrappers should simplify things, and not make them more complicated.
Regards,
Novo
|
|
|
|
|
|
|
Re: OpenCL [message #37931 is a reply to message #37905] |
Sat, 24 November 2012 02:30 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
Hello koldo,
I started a U++ based wrapper to replace cl.hpp, but I haven't finished it yet unfortunately
I'll try to finish it this weekend or next week.
Regards,
Novo
[Updated on: Sat, 24 November 2012 02:30] Report message to a moderator
|
|
|
|
Re: OpenCL [message #38158 is a reply to message #37963] |
Mon, 03 December 2012 06:43 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
Status update:
I'm still far away from finishing the wrapper. It will probably take me another week to do that.
What is the best place to put initial version? Bazaar of sandbox?
Regards,
Novo
|
|
|
|
|
Re: OpenCL [message #38353 is a reply to message #38167] |
Wed, 12 December 2012 06:00 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
Another status update:
I'm trying to make wrapper work with dli file. This requires redesign of previously working stuff. I also accidentally discovered that OpenCL 1.2 changed API in the way that one of descriptors that didn't require reference-counting in 1.1 requires it now. It turned out to be not that easy to make code work with different versions of API. I hope nobody is interested in supporting of OpenCL 1.0.
Regards,
Novo
[Updated on: Wed, 12 December 2012 18:00] Report message to a moderator
|
|
|
|
|
Re: OpenCL [message #38419 is a reply to message #38418] |
Fri, 14 December 2012 22:12 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
Hi Javier,
Have you added "c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\lib\Win32" or "c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\lib\x64" to "Setup->Build methods->Method->LIB directories"?
Regards,
Novo
|
|
|
|
Re: OpenCL [message #38421 is a reply to message #38420] |
Sat, 15 December 2012 01:27 |
Novo
Messages: 1371 Registered: December 2006
|
Ultimate Contributor |
|
|
281264 wrote on Fri, 14 December 2012 17:04 | Novo,
Thank you for your replay.
Yes, I've included:
�C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\lib\x64�
in the SetUp->BuilbMethod->LIB.
Also, in the package organizer, I've included the corresponding compiler instruction /I to allow it to access to the cl.hpp file.
Note: By the way, for a reason than I can't understand, the following does not work in the package organizer (when�compiler options):
/I C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include\
When it comes to link the program,it doesn't and the compilers says that the file 'Program.lib' can not be found.
I am doing something wrong but I do not know what.
Javier
|
IMHO, include path should be set up in "Setup->Build methods->Method->INCLUDE directories" because it is related to your machine and not to you package.
Can you check that you didn't set "All shared" in "Output mode" dialog? This, theoretically, can cause this 'Program.lib' error.
Regards,
Novo
|
|
|
Re: OpenCL [message #38428 is a reply to message #38421] |
Sat, 15 December 2012 11:37 |
281264
Messages: 272 Registered: June 2010 Location: Spain
|
Experienced Member |
|
|
Novo,
Thank you; eventually it works. I prefer using the Package Organizer with specific compiler instruction for specific applications; I reckon I was mixing the OpenCL.lib for 64 with the MSC10 for Win32.
What surprises me is that sometimes TheIde is unable to interpret /I C:\Program Files\.. in a correct manner; I do not know why.
Also, the lack of file cl.hpp in the Nvidia SDK is a surprise.
Anyway it works and I shall practice OpenCL a bit; have you got an easy example to share? Something like multiplication of matrices?
Cheers,
Javier
|
|
|
Goto Forum:
Current Time: Sun Nov 10 20:24:33 CET 2024
Total time taken to generate the page: 0.01744 seconds
|
|
|