Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small cleanup. #3575

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion cpp/src/umap/fuzzy_simpl_set/naive.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions cpp/src_prims/sparse/linalg/degree.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ __global__ void coo_degree_scalar_kernel(const int *rows, const T *vals,
}

/**
* @brief Count the number of values for each row matching a particular scalar
* @brief Count the number of values for each row that doesn't match a particular scalar
* @tparam TPB_X: number of threads to use per block
* @tparam T: the type name of the underlying value arrays
* @param in: Input COO array
Expand All @@ -124,7 +124,7 @@ void coo_degree_scalar(COO<T> *in, T scalar, int *results,
}

/**
* @brief Count the number of values for each row matching a particular scalar
* @brief Count the number of values for each row that doesn't match a particular scalar
* @tparam TPB_X: number of threads to use per block
* @tparam T: the type name of the underlying value arrays
* @param rows: Input COO row array
Expand Down
23 changes: 0 additions & 23 deletions cpp/src_prims/sparse/op/filter.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,6 @@ namespace raft {
namespace sparse {
namespace op {

template <int TPB_X, typename T>
__global__ void coo_remove_zeros_kernel(const int *rows, const int *cols,
const T *vals, int nnz, int *crows,
int *ccols, T *cvals, int *ex_scan,
int *cur_ex_scan, int m) {
int row = (blockIdx.x * TPB_X) + threadIdx.x;

if (row < m) {
int start = cur_ex_scan[row];
int stop = get_stop_idx(row, m, nnz, cur_ex_scan);
int cur_out_idx = ex_scan[row];

for (int idx = start; idx < stop; idx++) {
if (vals[idx] != 0.0) {
crows[cur_out_idx] = rows[idx];
ccols[cur_out_idx] = cols[idx];
cvals[cur_out_idx] = vals[idx];
++cur_out_idx;
}
}
}
}

template <int TPB_X, typename T>
__global__ void coo_remove_scalar_kernel(const int *rows, const int *cols,
const T *vals, int nnz, int *crows,
Expand Down