Skip to content

Use null pointer when allocating 0 memory for CUDA #50

@hobofan

Description

@hobofan

A CUDA cuMemAlloc returns an error when trying to allocate 0 bytes.

We should wrap the CUDA driver call so that trying to allocate 0 bytes returns a null pointer. Before implementing that it should be checked if providing cuMemFree with a null pointer is valid.

The recommended workaround for now is allocating 1 byte instead 0 bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions