Boost logo

Boost-Build :

From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-07-22 21:43:08

I want to add nVidia CUDA as a toolset in boost build. I need some help.

What needs to happen is that nvcc runs for sources of type .cu, and it
produces regular object files. The tricky part is that it invokes the
native C compiler. For that purpose, nvcc is given the path to the
native compiler, as well as the compile options to pass to it.

My questions are:

1. How do I make the cuda toolset assemble and pass the correct
options to the compiler, meaning, I don't want to hard-code a command
line -- ideally the boost-build abstraction should be used, so the
compiler options specified can be portable.

2. Some of nvcc options are similar to a C compiler, for example you
can pass preprocessor definitions. I think it's a good idea to pass
whatever #defines would be passed to the C compiler. I'm not sure how
to do this.

I would really appreciate if someone can give me step-by-step
instructions since I'm really new to modding boost build.

Emil Dotchevski
Reverge Studios, Inc.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at