gpu module fixes from cuda-dev branch

Merged several gpu module fixes and improvements from cuda-dev branch:
1. Carma support.
2. Kepler optimization.
3. Bug fixes.