Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » OpenCL
OpenCL [message #33297] Sat, 23 July 2011 06:32 Go to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Is there any interest in UPP-friendly OpenCL wrappers?
APUs are coming ... GPUs are already here ...


Regards,
Novo
Re: OpenCL [message #33300 is a reply to message #33297] Sat, 23 July 2011 12:53 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hi Novo,

I don't need for the moment, but this might come handy very quickly once it's available.

Thank's
Re: OpenCL [message #33301 is a reply to message #33300] Sat, 23 July 2011 18:13 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
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
Re: OpenCL [message #33303 is a reply to message #33301] Sat, 23 July 2011 18:42 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior 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 #33304 is a reply to message #33303] Sat, 23 July 2011 18:49 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Ok. You are right; the C++ wrapper is a bit convoluted, so something simpler would be good. Thanks.

Javier
Re: OpenCL [message #33330 is a reply to message #33297] Mon, 25 July 2011 05:05 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Thanks to everybody who replied to my question. There is definitely more interest in OpenCL than in Firebird. Smile

Regards,
Novo
Re: OpenCL [message #33332 is a reply to message #33330] Mon, 25 July 2011 10:36 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Definitely I am interested, although it will take time to me to have a full control of it; I dare to say that also Mirek is interested, see this topic.

http://www.ultimatepp.org/forum/index.php?t=msg&th=5808& amp;start=0&

I think it is a very potent tool for math calculations (for example for solving linear systems of equations). So your job will be very welcomed.

Javier
Re: OpenCL [message #37905 is a reply to message #33332] Thu, 22 November 2012 06:46 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello Novo, hello Javier

I am now rather interested in OpenCL.

Have you done something about OpenCL in U++?


Best regards
Iñaki
Re: OpenCL [message #37931 is a reply to message #37905] Sat, 24 November 2012 02:30 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Hello koldo,

I started a U++ based wrapper to replace cl.hpp, but I haven't finished it yet unfortunately Embarassed

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 #37963 is a reply to message #37931] Sun, 25 November 2012 09:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Thank you.

Best regards
Iñaki
Re: OpenCL [message #38158 is a reply to message #37963] Mon, 03 December 2012 06:43 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior 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 #38167 is a reply to message #38158] Mon, 03 December 2012 08:23 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
IMHO any of them are good.

If the implementation is good, I think OpenCL should have to be part of U++ because it gives high performance computing and is implemented in all hardware (ATI, Nvidia, Intel) and OS.


Best regards
Iñaki
Re: OpenCL [message #38203 is a reply to message #38167] Wed, 05 December 2012 22:38 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Quote:

If the implementation is good, I think OpenCL should have to be part of U++ because it gives high performance computing and is implemented in all hardware (ATI, Nvidia, Intel) and OS.



Yes , absolutely.

Javier
Re: OpenCL [message #38353 is a reply to message #38167] Wed, 12 December 2012 06:00 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior 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. Smile


Regards,
Novo

[Updated on: Wed, 12 December 2012 18:00]

Report message to a moderator

Re: OpenCL [message #38355 is a reply to message #38353] Wed, 12 December 2012 08:25 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
That is not a problem for me Smile

Best regards
Iñaki
Re: OpenCL [message #38418 is a reply to message #38355] Fri, 14 December 2012 20:49 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Hi,

I've dowloaded the latest Nvidia CUDA SDK with the intention of updating the OpenCL.lib and the like; I've tested it with a simple application but it does not work. I can not tune TheIDE to access the correct library folders,etc..Any hint about how to tune the package organaizer to allow OpenCL to work?

What I'm doing is:

1.- I'm currently using OpenCL 1.1 version with the cl.hpp file for C++. All files can be dowloaded together with the Nvidia SDK except the cl.hpp, which I downloaded from the Khronos web site (this file is not included in the new version of the SDK, to my surprise).

2.- I am running a simple OpenCL application that works (it worked with the 2010 version of the Nvidia SDK); the application compiles but the linking process fails.

Any adice?

Thank you,

Javier
Re: OpenCL [message #38419 is a reply to message #38418] Fri, 14 December 2012 22:12 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior 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 #38420 is a reply to message #38419] Fri, 14 December 2012 23:04 Go to previous messageGo to next message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
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
Re: OpenCL [message #38421 is a reply to message #38420] Sat, 15 December 2012 01:27 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior 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 Go to previous message
281264 is currently offline  281264
Messages: 270
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
Previous Topic: Added OCE (OpenCascade Community Edition) 3d solid modeling kernel -- UPDATED to 0.10 version
Next Topic: OfficeAutomation - Update Requests
Goto Forum:
  


Current Time: Mon Oct 18 08:56:17 CEST 2021

Total time taken to generate the page: 0.01080 seconds