Fix bizzare initialization code for cuda and yet another problem with cublas init.