Commit 5e6a3f1f authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11901 from alalek:fix_cuda_build

parents 523b6f32 fc59498b
...@@ -215,8 +215,8 @@ namespace ...@@ -215,8 +215,8 @@ namespace
AutoBuffer<ushort2> newBuf_(centersCount); AutoBuffer<ushort2> newBuf_(centersCount);
int newCount = 0; int newCount = 0;
ushort2* oldBuf = oldBuf_; ushort2* oldBuf = oldBuf_.data();
ushort2* newBuf = newBuf_; ushort2* newBuf = newBuf_.data();
cudaSafeCall( cudaMemcpy(oldBuf, centers, centersCount * sizeof(ushort2), cudaMemcpyDeviceToHost) ); cudaSafeCall( cudaMemcpy(oldBuf, centers, centersCount * sizeof(ushort2), cudaMemcpyDeviceToHost) );
......
...@@ -172,7 +172,7 @@ namespace ...@@ -172,7 +172,7 @@ namespace
// compute sizes // compute sizes
AutoBuffer<int> buf(levels_ * 3); AutoBuffer<int> buf(levels_ * 3);
int* cols_pyr = buf; int* cols_pyr = buf.data();
int* rows_pyr = cols_pyr + levels_; int* rows_pyr = cols_pyr + levels_;
int* nr_plane_pyr = rows_pyr + levels_; int* nr_plane_pyr = rows_pyr + levels_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment