density in cuda