I have just learn how to create shared libraries in linux through the ‘Program Libraries HOWTO’.
For now, I’ve been messing around with CUDA’s template project to turn it into a shared library.
So far what I’ve done:
- Change main() in template.cu to cudamain().
- I managed to turn it into a static library (a.a) with 'nvcc -lib template.cu -I …/…/common/lib.
- Can’t get another program to compile with it. It errors: missing symbol ‘cudamain’ even though it recognises a.a.
However, what I really want to know is how do I make nvcc create a shared library. Thanks :mellow: