Skip to content

[MLX] Honor descending in sort/argsort lowering - #25419

Open
doge-th wants to merge 1 commit into
pytorch:mainfrom
doge-th:fix-mlx-sort-descending
Open

doge-th wants to merge 1 commit into
pytorch:mainfrom
doge-th:fix-mlx-sort-descending

[MLX] Honor descending in sort/argsort lowering

25ed8c6
Select commit
Loading
Failed to load commit list.
PyTorch Bot / Dr.CI completed Nov 21, 2026 in 0s

Dr.CI classification results

{"FAILED":[],"FLAKY":[],"BROKEN_TRUNK":[],"UNSTABLE":[],"UNKNOWN":[],"AWAITING_APPROVAL":[{"workflowId":0,"workflowUniqueId":89606547,"workflowPath":".github/workflows/apple.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974272,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Apple","jobName":"Apple","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974272","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":65998012,"workflowPath":".github/workflows/doc-build.yml","workflowEvent":"pull_request","prDraft":false,"id":44921973901,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Build documentation","jobName":"Build documentation","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921973901","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":160319658,"workflowPath":".github/workflows/build-presets.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974243,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Build Presets","jobName":"Build Presets","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974243","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":244285389,"workflowPath":".github/workflows/build-cadence-runner.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974227,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Cadence Build & Test","jobName":"Cadence Build & Test","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974227","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":69064392,"workflowPath":".github/workflows/lint.yml","workflowEvent":"pull_request","prDraft":false,"id":44921973620,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Lint","jobName":"Lint","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921973620","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":236455973,"workflowPath":".github/workflows/mlx.yml","workflowEvent":"pull_request","prDraft":false,"id":44921973992,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"MLX","jobName":"MLX","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921973992","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":108868973,"workflowPath":".github/workflows/periodic.yml","workflowEvent":"pull_request","prDraft":false,"id":44939283262,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"periodic","jobName":"periodic","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44939283262","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T19:08:05.000000000Z"},{"workflowId":0,"workflowUniqueId":63454257,"workflowPath":".github/workflows/pull.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974321,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"pull","jobName":"pull","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974321","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":188272584,"workflowPath":".github/workflows/test-backend-arm.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974059,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test ARM Backend","jobName":"Test ARM Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974059","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":187910448,"workflowPath":".github/workflows/test-backend-coreml.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974184,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test CoreML Backend","jobName":"Test CoreML Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974184","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":334667604,"workflowPath":".github/workflows/test-backend-cortex-m.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974282,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test Cortex-M Backend","jobName":"Test Cortex-M Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974282","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":399845635,"workflowPath":".github/workflows/test-backend-cpu.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974102,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test CPU Backend","jobName":"Test CPU Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974102","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":337759933,"workflowPath":".github/workflows/test-backend-nxp.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974140,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test NXP Backend","jobName":"Test NXP Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974140","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":187910446,"workflowPath":".github/workflows/test-backend-qnn.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974203,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test QNN Backend","jobName":"Test QNN Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974203","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":309815533,"workflowPath":".github/workflows/qnn-windows-msvc.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974068,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test QNN Windows MSVC build","jobName":"Test QNN Windows MSVC build","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974068","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":187910447,"workflowPath":".github/workflows/test-backend-vulkan.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974235,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test Vulkan Backend","jobName":"Test Vulkan Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974235","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":287533318,"workflowPath":".github/workflows/test-backend-webgpu.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974214,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test WebGPU Backend","jobName":"Test WebGPU Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974214","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"},{"workflowId":0,"workflowUniqueId":187910449,"workflowPath":".github/workflows/test-backend-xnnpack.yml","workflowEvent":"pull_request","prDraft":false,"id":44921974141,"runnerName":"","authorEmail":"doge-th@users.noreply.github.com","name":"Test XNNPACK Backend","jobName":"Test XNNPACK Backend","conclusion":"action_required","completed_at":"1970-01-01T00:00:00.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/44921974141","logUrl":"","head_branch":"fix-mlx-sort-descending","pr_number":25419,"head_sha":"25ed8c67cce05ce5c9e53d4d367a2dea9a4b79fd","head_sha_timestamp":"2026-11-21T15:57:56Z","failure_captures":[],"failure_lines":[],"failure_context":[],"time":"2026-11-21T15:58:15.000000000Z"}]}