[REQ] wp.partial()

Open
#1,127 0 comments 1 reaction 1 assignee View on GitHub

@daedalus5 is already working on this.

Since Dec 15, 2025.

Assessment

This issue has not been assessed yet.

Description

feature request
Description

Similar to functools.partial, it would be useful to have wp.partial() to define function specializations with a subset of fixed parameters for Warp functions.

For example: if an int32 seed is known at compile time, a rng function that relies on the seed can be passed to tile functions likes tile_map() without needing to supply the seed as an argument.

Dominant language
Python
Stars
7.1k
Forks
624
Avg merge
3d 17h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

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 NVIDIA/warp

All issues in NVIDIA/warp

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.