Skip to content

Track remaining large-index paths in nearest upsample kernels #6164

Open

Description

@jiafuzha

Follow-up to #5822. This issue tracks remaining large-index risks that are not addressed by the re-land.

  • Audit 3d nearest upsample index_t dispatch/selection and batch-spanning indices in forward and backward; add focused coverage for selection boundaries.
  • Audit the contiguous 2d backward kernel, which currently uses int for flattened indexing and batch strides; use sufficiently wide indices or validate safe limits, with regression coverage.

Relevant code: src/ATen/native/xpu/sycl/UpSampleNearest3dKernels.cpp and src/ATen/native/xpu/sycl/UpSampleNearest2dKernels.cpp. The existing #5822 tests do not establish that these remaining paths are safe.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions