cuda.core 0.2.0 Release Notes¶
Released on <TODO>, 2025
Highlights¶
Add
ProgramOptionsto facilitate the passing of runtime compile options toProgram.
Breaking Changes¶
The
streamattribute is removed fromLaunchConfig. Instead, theStreamobject should now be directly passed tolaunch()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 theoptionsargument. Instead, you can optionally pass an instance ofProgramOptionsto the constructor ofProgram.Device.properties()now provides attribute getters instead of a dictionary interface.The
.handleattribute of variouscuda.coreobjects now returns the underlying Python object instead of a (type-erased) Python integer.
New features¶
Expose
ObjectCodeas a public API, which allows loading cubins from memory or disk. For loading other kinds of code types, please continue usingProgram.A C++ helper function
get_cuda_native_handle()is provided in the newinclude/utility.cuhheader to retrive the underlying CUDA C objects (ex:CUstream) from a Python object returned by the.handleattribute (ex:Stream.handle).For objects such as
ProgramandLinkerthat could dispatch to different backends, a new.backendattribute is provided to query this information.Support CUDA event timing.
An
Eventmay now be created without recording it to aStreamusing theDevice.create_event()method.
Limitations¶
<TODO>