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