multinomial cuda done