Jerome Kieffer <jerome.kief...@esrf.fr> writes:

> On Mon, 30 Mar 2015 12:46:42 -0400
> Ananth Sridharan <ana...@umd.edu> wrote:
>
>> > I have a simulation code which requires the use of multiple kernels. Each
>> of these kernels (global functions) needs to call a common set of device
>> functions. To organize code better, I'd like to provide multiple source
>> modules - one (or more) for the kernels, and one for the common
>> dependencies.
>
> Sometimes I concatenate sources (as python strings) before compilation ... in 
> OpenCL.
> This allows me to have less source code to maintain and a better 
> factorisation.
>
> This trick applies to your case a well.

Alternatively, include files are supported by the compiler (and
dependencies are tracked for caching purposes).

Andreas

Attachment: signature.asc
Description: PGP signature

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to