Boost logo

Boost-Build :

Subject: Re: [Boost-build] Trying to use a 1:1 generator
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-02-08 13:48:04


> Hi John,
>
> I can't reproduce your problem - see the attached project. When I run
> "b2 -n" there,
> I see an attempt to run "nvcc", followed by an attempt to make a
> binary and run
> it.
>
> Was your code placed in a module called "cu.jam"?
>

OK, that was the information I was missing, I think it needs to be a bit
clearer in the tutorial here:
http://www.boost.org/build/doc/html/bbv2/extender/example.html

However, while that gets me a little further forward, I'm still stuck.

Let's say I have:

import testing ;
import cu ;
cuda = [ modules.peek : CUDA_PATH ] ;

lib cuda : : <search>$(cuda)/lib/x64 ;

run erf_double.cu cuda : : : release <toolset>msvc:<runtime-link>static ;

Now I see:

warn: Unable to construct ./cuda

And indeed no reference to cuda.lib is present on the link command line
so I get unresolved externals. Any ideas why "lib cuda ;" isn't accepted?

Thanks, John.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk