fix bug when working multiple devices.

The lib requires to work with multiple context for the moment in that
case.
Therefore we need to get one kernel object per context
Merge pull request #29 from BenjaminCoquelle/develop

fix bug when working multiple devices.