Boost logo

Boost-Build :

From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-07-24 19:15:21


Hello,

Without knowing much about bjam I was able to copy and paste my way
through integrating nvcc, the nVidia CUDA compiler into boost-build.
I've attached the .jam file I ended up with, it works but it needs a
few finishing touches.

For now I only support the -cuda mode of nvcc, in which it takes a .cu
source and produces a .cpp output. It's still a C compiler though, so
I'm passing it the usual <undef>, <define> and <include> features. I'm
also scanning the .cu files for #includes to extract dependencies.

The issue I need help with is this:

On Windows, nvcc uses msvc (it can work with either 7.1 or 8.0), so
before nvcc runs, the the msvc environment variables need to be set.
Therefore, the proper init rule for nvcc.jam would be somewhat
complicated, since it has to init the msvc compiler as well.

I have no idea how to do this, so the init rule is empty for now, and
I've hardcoded the paths to msvc and nvcc. This works for me, but if
someone wants to help with the finishing touches, perhaps we can
include this nvcc support in the boost build official release?

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode




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