multi-threaded CPU controlling GPUs seeking code examples

Greetings,

Can anyone point me to code examples in which separate CPU threads control multiple kernels on more than one GPU?

Actually any code using CPU threads would be welcome.

Pthreads & POSIX preferred. I’m just getting into it, and the basics don’t seem too bad, but it’s best to see some actual CUDA
code that someone has made work before venturing into unknown territory.

THANKS

C Lanz
lanzcc@potsdam.edu

Here are some source files from VMD:

http://www.ks.uiuc.edu/Research/vmd/doxyge…8cu-source.html

http://www.ks.uiuc.edu/Research/vmd/doxyge…_8C-source.html

Cheers,

John Stone