cuda: modified context management
Merge remote-tracking branch 'origin/gdev-axe'