Skip to content

Commit

Permalink
Fix unused variable warning in Sorting.cu (pytorch#71555)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#71555

Test Plan: Sandcastle

Reviewed By: malfet, mruberry

Differential Revision: D33675174

fbshipit-source-id: c849b809d17d8c51b4ddba24ec5e2ae7bd1fa69a
(cherry picked from commit 440fca6)
  • Loading branch information
r-barnes authored and pytorchmergebot committed Jan 20, 2022
1 parent 9f1ad2d commit 8b5775a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aten/src/ATen/native/cuda/Sorting.cu
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ struct KthValueLauncher {
int collapse_self_dim,
int64_t num_slices,
int64_t slice_size) {
(void)collapse_indices_dim; // Suppress unused variable warning
dim3 grid;
if (!getGridFromTiles(num_slices, grid)) {
AT_ERROR("slices are too many");
Expand Down Expand Up @@ -219,6 +220,7 @@ struct MedianLauncher {
int collapse_self_dim,
int64_t num_slices,
int64_t slice_size) {
(void)collapse_values_dim; // Suppress unused variable warning
(void)collapse_indices_dim; // Suppress unused variable warning
dim3 grid;
if (!getGridFromTiles(num_slices, grid)) {
Expand Down

0 comments on commit 8b5775a

Please sign in to comment.