----- Original Message -----
From: "David Mertens"
The first question I asked myself was this: Could I simply use Inline::C
and
specify nvcc as my compiler? Answer: No. ExtUtils::MakeMaker sends a whole
boatload of compiler flags to gcc that makes nvcc choke. However, there is
a
way to send special compiler flags to the compiler backend, using the
-Xcompiler=flag1,flag2,... option for nvcc.
EU::MM is, of course, mainly just sending along what it finds in %Config ...
and %Config can be overwritten "on the fly". This is how Win32 users can use
the mingw port of gcc with a perl (eg ActivePerl) that has been built using
a Microsoft compiler.
The cpan module that facilitates this for Win32 users is called
ExtUtils::FakeConfig. (ActivePerl comes with its own built in replacement of
EU::FC for anyone who wants to make use of it - their rendition takes
essentially the same approach as EU::FC.)
Not sure if that's of any use to you - if the current solution is working ok
there's probably no need to look further.
My plans are to create CPAN distributions ExtUtils::nvcc (which would
install perl_nvcc) and Inline::CUDA (which would be derived from
Inline::C).
If I still have energy, I may work with Module::Build to include some sort
of CUDA support. Eventually, I'd like to start working on the CUDA-Perl
bindings, which I'll take elsewhere, probably to the PDL list. Does these
sound like a good ideas? Is anybody else interested?
Always interesting to hear about the sorts of things that Inline is being
used for.
You might also mention it in the "Cool Uses For Perl" section at perlmonks -
http://www.perlmonks.org/index.pl?node=Cool%20Uses%20for%20Perl
No need to sign up - you can just submit your post as "Anonymous Monk" by
entering your description in the box at the bottom of that webpage.
Not sure if there will be much reaction, but it will most probably be read
by a larger number (and a more diverse group) of perl programmers than are
subscribed here.
Cheers,
Rob