Need Argsort For 32Bit Index For 32Bit Types

Open
#97 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
performance

Research direction

Start by locating the existing argsort implementation that uses unsigned int64_t indexes and its AVX2 and AVX512 paths. Compare the requested int32_t index behavior with the mentioned i32gather_ps and epi32 instructions. Done means providing an int32_t-index argsort for 32-bit types with coverage for the relevant platforms and performance validation.

Written by the indexing model from the issue text.

Description

We only have argsort whose indexes are (unsigned) int64_t. For 32bit types like int/float, I think argsort with int32_t as index type can also be provided, which may performs better with avx512's i32gather_ps/epi32 instructions. Also, this function can be easily implemented in AVX2 plantforms.

Dominant language
C++
Stars
1k
Forks
79
Avg merge
2d 2h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from numpy/x86-simd-sort

All issues in numpy/x86-simd-sort

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.