multi-threaded CPU controlling GPUs seeking code examples


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.


C Lanz

Here are some source files from VMD:…8cu-source.html…_8C-source.html


John Stone