On Mon, Feb 18, 2013 at 11:03 AM, Pekka Jääskeläinen <
[email protected]> wrote:
> On 02/18/2013 04:58 PM, Erik Schnetter wrote:
> > What is missing is integrating this with pocl's build system, and
> > autoconf'ing building C++ files.
>
> The plan is to have also the generated C++ implementations added to the
> pocl, right? Similarly to the convert_type.py. That is, the developers
> or the users of pocl are not going to need to have Vecmathlib available
> to benefit from its fast implementations.
>
> Thus, the build system of pocl should compile the pregenerated
> implementations if C++ is available (and use them over the "default ones"),
> and there should be a script or a makefile for easily regenerating the
> implementations (e.g., after Vecmathlib is improved)?
>
Yes, this is the plan.
Vecmathlib is written in C++ using templates. To generate header files and
implementations for pocl, I created a Python script that mimics the C
preprocessor magic that we currently use for this. This script creates a
set of files (some C++, some OpenCL) that need to be compiled. This is very
similar to how the kernel functions are currently implemented, except that
there are (necessarily) also C++ files.
Yes, if C++ is not available, the current functions should be used instead
as fallback; things need to continue to work without C++.
Yes, this script (generating the C++ and OpenCL files) is currently run as
part of the build process.
Vecmathlib uses cmake. Some of this logic needs to be converted to
automake; this is what I called "missing" above.
-erik
--
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/
AIM: eschnett247, Skype: eschnett, Google Talk: [email protected]
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel