NVIDIA / NVIDIA/warp

[REQUEST] Initialize Warp upon import

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

import warp as wp should automatically initialize Warp.

Currently, wp.init() is called from functions that require Warp to be initialized.

Note that some configuration options in Warp must be set before initialization:

  • warp.config.quiet is used to minimize the printouts when Warp initializes
  • warp.config.kernel_cache_dir is used to set the kernel cache prior to initialization, although it can be changed after initialization using now-undocumented means
  • warp.config.enable_mempools_at_init is used to disable memory pools at initialization

Additional comments (5/7):

  • We will need to quiet the wp.init() printout by default
  • We also don't want an environment variable to change the above behavior (e.g. WP_INIT_VERBOSE)
  • Need to add a function that prints out the same or similar information that wp.init() currently does, e.g. wp.print_environment_info(return_string=False)
Context

User experience?

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.

Research direction

Start by tracing the existing wp.init() entry points and the import path, then review the listed configuration options that must be set before initialization. Clarify the desired default output and the proposed print_environment_info behavior, including how import-time initialization and pre-initialization configuration should be tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.