Changed cudamalloc param to double