Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ repos:
language: python
additional_dependencies:
- https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl
- id: no-markdown-in-docs
name: Prevent Markdown files in cuda_*/docs/ directories
entry: bash -c 'if git diff --cached --name-only --diff-filter=A | grep -E "^cuda_.*/docs/.*\.md$"; then echo "Error: Markdown files are not allowed in cuda_*/docs/ directories. Please use .rst format instead."; exit 1; fi'
language: system
pass_filenames: false
always_run: true

- repo: https://github.com/PyCQA/bandit
rev: 2d0b675b04c80ae42277e10500db06a0a37bae17 # frozen: 1.8.6
Expand Down
82 changes: 0 additions & 82 deletions cuda_bindings/docs/source/conduct.md

This file was deleted.

57 changes: 57 additions & 0 deletions cuda_bindings/docs/source/conduct.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Code of Conduct
===============

Overview
--------

Define the code of conduct followed and enforced for the ``cuda.bindings`` project.

Our Pledge
----------

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

Our Standards
-------------

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

Our Responsibilities
--------------------

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

Scope
-----

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

Enforcement
-----------

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at cuda-python-conduct@nvidia.com All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.

Attribution
-----------

This Code of Conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org>`__, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
12 changes: 0 additions & 12 deletions cuda_bindings/docs/source/contribute.md

This file was deleted.

13 changes: 13 additions & 0 deletions cuda_bindings/docs/source/contribute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Contributing
============

Thank you for your interest in contributing to ``cuda-bindings``! Based on the type of contribution, it will fall into two categories:

1. You want to report a bug, feature request, or documentation issue

- File an `issue <https://github.com/NVIDIA/cuda-python/issues/new/choose>`__ describing what you encountered or what you want to see changed.
- The NVIDIA team will evaluate the issues and triage them, scheduling them for a release. If you believe the issue needs priority attention comment on the issue to notify the team.

2. You want to implement a feature, improvement, or bug fix:

- At this time we do not accept code contributions.
13 changes: 0 additions & 13 deletions cuda_bindings/docs/source/environment_variables.md

This file was deleted.

16 changes: 16 additions & 0 deletions cuda_bindings/docs/source/environment_variables.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Environment Variables
=====================

Build-Time Environment Variables
--------------------------------

- ``CUDA_HOME`` or ``CUDA_PATH``: Specifies the location of the CUDA Toolkit.

- ``CUDA_PYTHON_PARSER_CACHING`` : bool, toggles the caching of parsed header files during the cuda-bindings build process. If caching is enabled (``CUDA_PYTHON_PARSER_CACHING`` is True), the cache path is set to ./cache\_, where is derived from the cuda toolkit libraries used to build cuda-bindings.

- ``CUDA_PYTHON_PARALLEL_LEVEL`` (previously ``PARALLEL_LEVEL``) : int, sets the number of threads used in the compilation of extension modules. Not setting it or setting it to 0 would disable parallel builds.

Runtime Environment Variables
-----------------------------

- ``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.
12 changes: 6 additions & 6 deletions cuda_bindings/docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
:caption: Contents:

release
install.md
overview.md
motivation.md
environment_variables.md
install.rst
overview.rst
motivation.rst
environment_variables.rst
api
tips_and_tricks
support
contribute.md
conduct.md
contribute.rst
conduct.rst
license


Expand Down
88 changes: 0 additions & 88 deletions cuda_bindings/docs/source/install.md

This file was deleted.

Loading