Skip to content

Commit

Permalink
delete double assign of cudaPitchedPtr component
Browse files Browse the repository at this point in the history
  • Loading branch information
psychocoderHPC committed Feb 10, 2014
1 parent 9111c71 commit d734635
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libPMacc/include/memory/buffers/DeviceBufferIntern.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ namespace PMacc
}
if (DIM == DIM2)
{
data.xsize = this->data_space[0]* sizeof (TYPE);
data.ysize = this->data_space[1];
log<ggLog::MEMORY >("Create device 2D data: %1% MiB") % ( data.xsize * data.ysize / 1024 / 1024 );
CUDA_CHECK(cudaMallocPitch(&data.ptr, &data.pitch, data.xsize , data.ysize));
Expand Down

0 comments on commit d734635

Please sign in to comment.