Fix log in cuda