Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cpp/src/umap/simpl_set_embed/optimize_batch_kernel.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ CUML_KERNEL void optimize_batch_kernel_reg(T const* head_embedding,
T nsr_inv,
T rounding)
{
nnz_t row = (blockIdx.x * static_cast<nnz_t>(TPB_X)) + threadIdx.x;
nnz_t skip_size = blockDim.x * gridDim.x;
size_t row = (static_cast<size_t>(blockIdx.x) * static_cast<size_t>(TPB_X)) + threadIdx.x;
size_t skip_size = static_cast<size_t>(blockDim.x) * gridDim.x;

T current_reg[n_components], other_reg[n_components], grads[n_components];
while (row < nnz) {
Expand Down Expand Up @@ -231,8 +231,8 @@ CUML_KERNEL void optimize_batch_kernel(T const* head_embedding,
T rounding)
{
extern __shared__ T embedding_shared_mem_updates[];
nnz_t row = (blockIdx.x * static_cast<nnz_t>(TPB_X)) + threadIdx.x;
nnz_t skip_size = blockDim.x * gridDim.x;
size_t row = (static_cast<size_t>(blockIdx.x) * static_cast<size_t>(TPB_X)) + threadIdx.x;
size_t skip_size = static_cast<size_t>(blockDim.x) * gridDim.x;

while (row < nnz) {
auto _epoch_of_next_sample = epoch_of_next_sample[row];
Expand Down
Loading