281264 Messages: 270 Registered: June 2010 Location: Spain
Experienced Member
Mirek,
I do not know whether you are asking for something sophisticated but I am attaching a very basic example of OpenCL in U++. It is the traditional “Hello World” example. The OpenCL code is in the file “example1_kernels.cl”.
In my case I downloaded the NVIDIA OpenCL drivers and other OpenCL files from the Khronos Group web page. I included the appropriate instructions in the Package Organizer.
My knowledge of OpenCL is limited but I am condemned to use it in the near future, due to the fact that for intensive math calculations is a fundamental tool.
I am happy to hear that you are interested in OpenCL.
By the way, what about NTL with OpenCL? Can they work together?
Do not know yet.
What I know (because I have been studying it currently) is that NTL would not work with SSE2. The problem is that SSE2 has requirements for memory alignement that basic U++ memory allocatator is unable to satisfy.
I am however thinking about fixing this issue.... Well, maybe impossible for Array containers, but should be possible for Vector.