Skip to content

cuda.core v0.2.0

Latest
Compare
Choose a tag to compare
@vzhurba01 vzhurba01 released this 17 Mar 20:44
· 72 commits to main since this release
111c713

cuda.core v0.2.0 release announcement

Release note

All functionalities are currently hosted under the cuda.core.experimental namespace. Once the features become stable they will be moved out of experimental.

Key Features and Enhancements

  • Add ProgramOptions to facilitate the passing of runtime compile options to Program.
  • Add pythonic access to Device and Kernel attributes.

For full details please refer to the release note above.

Breaking Changes

  • The stream attribute is removed from LaunchConfig. Instead, the Stream object should now be directly passed to launch as an argument.
  • The signature for launch is changed by swapping positional arguments, the new signature is now (stream, config, kernel, *kernel_args)
  • Change __cuda_stream__ from attribute to method.
  • The Program.compile method no longer accepts the options argument. Instead, you can optionally pass an instance of ProgramOptions to the constructor of Program.
  • Device.properties now provides attribute getters instead of a dictionary interface.
  • The .handle attribute of various cuda.core objects now returns the underlying Python object instead of a (type-erased) Python integer.

New examples

  • jit_lto_fractal.py — Demonstrates just-in-time link-time optimization for fractal generation. (Device, LaunchConfig, Linker, LinkerOptions, Program, ProgramOptions) (#475)
  • simple_multi_gpu_example.py — Example of using multiple GPUs. (Device, Program, LaunchConfig) (#304)
  • show_device_properties.py — Displays detailed device properties. (Device) (#474)

Documentation

Sample codes

Test fixes

  • Clean up device initialization in some tests. (#507)

What's Changed

New Contributors

Full Changelog: cuda-core-v0.1.1...cuda-core-v0.2.0