Skip to content

Latest commit

 

History

History

cuda_core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cuda.core: (experimental) pythonic CUDA module

Currently under active development; see the documentation for more details.

Installing

To build from source, just do:

$ git clone https://github.com/NVIDIA/cuda-python
$ cd cuda-python/cuda_core  # move to the directory where this README locates
$ pip install .

For now cuda-python is a required dependency.

Developing

We use pre-commit to manage various tools to help development and ensure consistency.

pip install pre-commit

Code linting

Run this command before checking in the code changes

pre-commit run -a --show-diff-on-failure

to ensure the code formatting is in line of the requirements (as listed in pyproject.toml).

Code signing

This repository implements a security check to prevent the CI system from running untrusted code. A part of the security check consists of checking if the git commits are signed. See here and here for more details, including how to sign your commits.

Testing

To run these tests:

  • python -m pytest tests/ against editable installations
  • pytest tests/ against installed packages