Various minor changes to bring smcuda up to date with sm.