Skip to content

Commit

Permalink
no way right
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanting Zhang committed Feb 8, 2024
1 parent 7f6fa69 commit 574cc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msm/pippenger.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class msm_t {
this->d_total_blob = nullptr;

d_points = reinterpret_cast<decltype(d_points)>(gpu.Dmalloc(npoints * sizeof(d_points[0])));
gpu.HtoD(d_points, points, npoints, sizeof(affine_t));
gpu.HtoD(d_points, points, npoints, sizeof(affine_h));
CUDA_OK(cudaGetLastError());
}

Expand Down Expand Up @@ -477,7 +477,7 @@ class msm_t {
batch = 1 << (std::max(lg_n, wbits) - wbits);
batch >>= 6;
batch = batch ? batch : 1;
stride = (npoints + batch - 1) / batch;
stride = (nscalars + batch - 1) / batch;
stride = (stride + WARP_SZ - 1) & ~(WARP_SZ - 1);

// Allocate the memory required for each batch
Expand Down

0 comments on commit 574cc81

Please sign in to comment.