Skip to content

Latest commit

 

History

History
 
 

README.md

cuda.core: (experimental) Pythonic CUDA module

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

Installing

Please refer to the Installation page for instructions and required/optional dependencies.

Developing

This subpackage adheres to the developing practices described in the parent metapackage CONTRIBUTING.md.

Testing

To run these tests:

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

Alternatively, from the repository root you can use a simple script:

  • ./scripts/run_tests.sh core to run only cuda_core tests
  • ./scripts/run_tests.sh to run all package tests (pathfinder → bindings → core)
  • ./scripts/run_tests.sh smoke to run meta-level smoke tests under tests/integration

Cython Unit Tests

Cython tests are located in tests/cython and need to be built. These builds have the same CUDA Toolkit header requirements as those of cuda.bindings where the major.minor version must match cuda.bindings. To build them:

  1. Set up environment variable CUDA_HOME with the path to the CUDA Toolkit installation.
  2. Run build_tests script located in tests/cython appropriate to your platform. This will both cythonize the tests and build them.

To run these tests:

  • python -m pytest tests/cython/ with editable installations
  • pytest tests/cython/ with installed packages