Skip to content

Commit

Permalink
Fix keyword restrict to fix Windows Build
Browse files Browse the repository at this point in the history
  • Loading branch information
CuiYifeng committed Jan 17, 2025
1 parent c198c4d commit 09d1102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ATen/native/xpu/sycl/Indexing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1550,11 +1550,11 @@ struct IndexSelectSparse3Functor {
index_t count,
index_t offset,
index_t first_match) const {
index_t* __restrict__ ptr_res_dim_indices_out =
index_t* RESTRICT ptr_res_dim_indices_out =
ptr_res_dim_indices_ + offset;
const index_t* __restrict__ ptr_argsort_dim_indices_in =
const index_t* RESTRICT ptr_argsort_dim_indices_in =
ptr_argsort_dim_indices_ + first_match;
index_t* __restrict__ ptr_selected_dim_indices_out =
index_t* RESTRICT ptr_selected_dim_indices_out =
ptr_selected_dim_indices_ + offset;
for (index_t i = 0; i < count; ++i) {
*ptr_res_dim_indices_out++ = idx_idx;
Expand Down

0 comments on commit 09d1102

Please sign in to comment.