You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project uses [pre-commit.ci](https://pre-commit.ci/) with GitHub Actions. All pull requests are automatically checked for pre-commit compliance, and any pre-commit failures will block merging until resolved.
17
+
18
+
To set yourself up for running pre-commit checks locally and to catch issues before pushing your changes, follow these steps:
* You can manually check all files at any time by running: `pre-commit run --all-files`
22
+
23
+
This command runs all configured hooks (such as linters and formatters) across your repository, letting you review and address issues before committing.
24
+
25
+
**Optional: Enable automatic checks on every commit**
26
+
If you want pre-commit hooks to run automatically each time you make a commit, install the git hook with:
27
+
28
+
`pre-commit install`
29
+
30
+
This sets up a git pre-commit hook so that all configured checks will run before each commit is accepted. If any hook fails, the commit will be blocked until the issues are resolved.
31
+
32
+
**Note on workflow flexibility**
33
+
Some contributors prefer to commit intermediate or work-in-progress changes that may not pass all pre-commit checks, and only clean up their commits before pushing (for example, by squashing and running `pre-commit run --all-files` manually at the end). If this fits your workflow, you may choose not to run `pre-commit install` and instead rely on manual checks. This approach avoids disruption during iterative development, while still ensuring code quality before code is shared or merged.
34
+
35
+
Choose the setup that best fits your workflow and development style.
Copy file name to clipboardExpand all lines: cuda_bindings/docs/source/environment_variables.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,3 +11,8 @@
11
11
## Runtime Environment Variables
12
12
13
13
-`CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM` : When set to 1, the default stream is the per-thread default stream. When set to 0, the default stream is the legacy default stream. This defaults to 0, for the legacy default stream. See [Stream Synchronization Behavior](https://docs.nvidia.com/cuda/cuda-runtime-api/stream-sync-behavior.html) for an explanation of the legacy and per-thread default streams.
14
+
15
+
16
+
## Test-Time Environment Variables
17
+
18
+
-`CUDA_PYTHON_TESTING_WITH_COMPUTE_SANITIZER` : When set to 1, tests are skipped that would cause [compute-sanitizer](https://docs.nvidia.com/compute-sanitizer/ComputeSanitizer/index.html) to raise an error.
0 commit comments