Moved kepler patch into branch
Fix custom build event for cuda.