Added barier after cublas call.
Fix package loading to chose an available GPU