Add debugging around a problematic cudaMalloc