Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xytintel authored Jul 23, 2024
1 parent 5f4970b commit a7cea5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ATen/native/xpu/sycl/SortingKernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,7 @@ void segmented_sort_pairs_(
int num_elements) {
constexpr int scaling_coef = sizeof(key_t) * sizeof(value_t) >= 64
? 2
: 1; // Attempt to reduce register pressure. The result will be incorrect
// when using too many local variables (registers).
// https://github.com/intel/torch-xpu-ops/issues/626
: 1; // Attempt to reduce register pressure for performance.
if (num_elements > 4096 / scaling_coef) {
// Considering register pressure, we use a problem size of 4096 to delineate
// the boundary between single tile sort and group sort.
Expand Down

0 comments on commit a7cea5d

Please sign in to comment.