Skip to content

Knapsack / MaskedKnapsack GPU sort #54

Description

@samtalki

_partial_sort_negative! is O(m·k) insertion sort, currently CPU-only.
oracles affected: Knapsack, MaskedKnapsack. blocks GPU support for
budget-constrained problems.

  • options: bitonic top-k via KernelAbstractions.jl, thrust::partial_sort
    (CUDA), MPS sort (Metal)
  • only worth it when k is large; small k stays on CPU
  • sparse vertex protocol must still return nzind / nzval

cross-vendor parity: pick a path that works across backends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions