Boost logo

Boost-Build :

Subject: Re: [Boost-build] cuda.jam
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2009-12-01 14:14:48


On Dec 1, 2009, at 12:10 PM, Emil Dotchevski wrote:

> On Tue, Dec 1, 2009 at 1:56 AM, Pete Bartlett
> <pcbartlett_at_[hidden]> wrote:
>> Hello Boost.Builders,
>>
>> I am interested in integrating nvidia cuda compilation into our
>> Boost.Build
>> system. I see from a previous posts (e.g.
>> http://lists.boost.org/boost-build/2008/07/19741.php) that this
>> has been
>> attempted before. Noel Belcourt even references a cuda.jam in a
>> recent post
>> (http://lists.boost.org/boost-build/2009/11/22687.php). I imagine
>> this
>> cuda.jam defines a cuda toolset - however I don't believe it is in
>> a release
>> of Boost. Is there a copy of that toolset file that can be made
>> publicly
>> available? Or if not, does anyone have any tips for creating my own?
>
> I don't know bjam well enough to write a proper nvcc.jam file but I
> managed to hack my way to something working, see attachment. There are
> some hardcoded paths that you'll have to change, plus I find myself
> occasionally editing the jam file to tweak the nvcc options --
> obviously it'd be much better if they can be changed directly from the
> Jamfiles.

PIggybacking on here. Not sure my effort is any better but you're
free to use it if it helps.

You'll need something like this in your user-config.jam

using cuda
   : 2.2
   : nvcc
   ;

-- Noel






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