cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

dar
Journeyman III

stdcl: standard compute layer library

BDT has released a library (libstdcl) that provides a simplified interface to OpenCL
and also provides some tools for linking, tracing and timing compute layer calls.

Its free software and distributed under the LGPLv3 license.  Currently targets Linux.

More info can be found here:

http://www.browndeertechnology.com/stdcl.html

-dar

 

0 Likes
7 Replies
Stib
Journeyman III

Is it better than using cl.hhp?

If yes, convince me of it please!

0 Likes
dar
Journeyman III

Originally posted by: Stib Is it better than using cl.hhp?

 

If yes, convince me of it please! 🙂

 

i would not necessarily compare stdcl.h with cl.hpp.  C++ bindings are useful and benefit many programmers, but some programmers might prefer a more light-weight API designed in a traditional UNIX/C style of syntax and semantics.  its really a question of personal preference as a programmer.  I think libstdcl might offer some useful functionality not provided by cl.hpp.  And tools like clld and cltrace might be useful.  best way to decide is to take a look at the man page for stdcl available online and also take a look at the NBody simulation tutorial just posted on the forum.  the tutorial code uses stdcl.h.  

-dar

 

0 Likes

It is possible now to use it in Windows?

I watched webinar "OpenCL Programming in Detail", than i discovered "OpenCL™ Tutorial: N-Body Simulation" and there was next: "This tutorial is targeted (and tested) for Linux, although there is no reason why it should not be applicable to Windows(!), in principle(!)." What mean "in principle" in this case? I can use STDCL under Windows in some way, or I need to write another code for N-Body Algorithm, or what?

And when Windows-optimized release will be published in case, if i can't use this under Windows?

0 Likes

Originally posted by: McShult It is possible now to use it in Windows?

 

I watched webinar "OpenCL Programming in Detail", than i discovered "OpenCL™ Tutorial: N-Body Simulation" and there was next: "This tutorial is targeted (and tested) for Linux, although there is no reason why it should not be applicable to Windows(!), in principle(!)." What mean "in principle" in this case? I can use STDCL under Windows in some way, or I need to write another code for N-Body Algorithm, or what?

 

And when Windows-optimized release will be published in case, if i can't use this under Windows?

 

First, thank you for your interest in the webinar topic - I hope it was informative.  STDCL evolved out of support for HPC projects using Linux and is actively used in several projects (that I know of) because it makes it very easy to use OpenCL without losing the performance and control OpenCL provides.

Although the API did not initially support Windows, there is a dev branch working on a port to Windows.  This is an active branch with comparable priority to development work toward improvements on the Linux side for future v1.1 release.  Sorry for the vague reference to "in principle" during the webinar.  What I meant was not that one could imagine it being done, but that there was no reason why it cannot be ported.  It is being ported.  Based on the interest we have received in Windows support what will likely happen is that this will be pushed to the git repo very soon prior to the v1.1 release which is scheduled for next quarter.  This early support will be an extension to the existing v1.0 stable release branch. 

What I will do is update this thread when more info on Windows support is available.  Alternatively, if you send an email to support@ on the brown deer website we can make sure you receive email notification.

 

 

0 Likes

Originally posted by: dar

First, thank you for your interest in the webinar topic - I hope it was informative.



Yes, it was.

Originally posted by: dar

What I will do is update this thread when more info on Windows support is available.



I hope for this and I will wait for it with big impatience.

 

dar, thank you for respond and good luck in your work.

0 Likes

dar, there is progress with porting to Windows?

0 Likes

Responding a bit late, but yes, STDCL was ported to Windows 7 with MSVS 2010 and is now reasonably stable.  Has been used heavily with internal projects.  Recent release adds more examples for Win7 and includes STDCL extension of C++ container classes STL vector and boost multi_array.  More info below.

release notes:

http://www.browndeertechnology.com/docs/coprthr-1.3_release_notes.html

more detailed information:

http://www.browndeertechnology.com/docs/coprthr-primer-rev1.3.html

quick reference cards:

http://www.browndeertechnology.com/docs/stdcl-1.3-c_reference_card.pdf

http://www.browndeertechnology.com/docs/stdcl-1.3-fortran_reference_card.pdf

 

0 Likes