Skip Menu |

This queue is for tickets about the ExtUtils-nvcc CPAN distribution.

Report information
The Basics
Id: 83396
Status: open
Priority: 0/
Queue: ExtUtils-nvcc

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.03
Fixed in: (no value)



Subject: use the compiler that perl was compiled with
nvcc defaults to gcc (here: 4.7), which is wrong when one additionally installs an older version (4.6) that actually works with cuda. The following patch fixes this. diff --git a/lib/ExtUtils/nvcc/Backend.pm b/lib/ExtUtils/nvcc/Backend.pm index 7a806fe..2d03cfb 100644 --- a/lib/ExtUtils/nvcc/Backend.pm +++ b/lib/ExtUtils/nvcc/Backend.pm @@ -220,6 +220,8 @@ sub run_nvcc { # seperate the kernel code from the host code and send only the kernel code # through nvcc. + push @_, "--compiler-bindir=$Config{cc}"; + our $verbose; print "Running nvcc with args [[", join(']], [[', @_), "]]\n" if $verbose;
Daxim - Thanks for this report and patch. Out of curiosity, do you think this might better go in ExtUtils::nvcc's build_args function? See https://github.com/run4flat/perl_nvcc/blob/master/lib/ExtUtils/nvcc.pm#L326. If you think it's better to put this in the Backend, I'll be happy to put it there. Also, you'll get a faster response from me if you can report this on github instead of rt. I should probably update the bugs link for this distribution with my next release. David On Sun Feb 17 13:48:18 2013, DAXIM wrote: Show quoted text
> nvcc defaults to gcc (here: 4.7), which is wrong when one additionally > installs an older version (4.6) that actually works with cuda. The > following patch fixes this. > > > diff --git a/lib/ExtUtils/nvcc/Backend.pm b/lib/ExtUtils/nvcc/Backend.pm > index 7a806fe..2d03cfb 100644 > --- a/lib/ExtUtils/nvcc/Backend.pm > +++ b/lib/ExtUtils/nvcc/Backend.pm > @@ -220,6 +220,8 @@ sub run_nvcc { > # seperate the kernel code from the host code and send only the > kernel code > # through nvcc. > > + push @_, "--compiler-bindir=$Config{cc}"; > + > our $verbose; > print "Running nvcc with args [[", join(']], [[', @_), "]]\n" > if $verbose;