NVENC multiple concurrent encode sessions on Linux using K40c

I have downloaded Nvidia Video Codec SDK 6.0 and went through sample code. I could not find any example that demonstrates how to setup multiple concurrent encode sessions using NVENC API. Did not have much luck searching on Google as well.
My setup consists of a Linux machine with K40c card and CUDA 7.5.

If anyone could help out with some pointers with some code snippets on how to setup concurrent encode sessions, it would be much appreciated.