Skip to content

v2.3.2

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 03:58
5a6f9a9

Fixed

  • A CPU-only torch no longer stops Importer from connecting. A torch 2.x+cpu wheel
    imports fine, so the importer built its zero-copy torch views at connect time, and
    torch.as_tensor(..., device="cuda") raised. Numpy and CuPy consumers then could not connect.
    The importer now builds the torch views only when torch.cuda.is_available() is True.
    get_frame() raises a clear RuntimeError on a torch build without CUDA.
  • Torch views are built on ImportSpec.device. The views used device="cuda", which is
    torch's current device. On a multi-GPU host with ImportSpec(device=1) and current device 0,
    torch copied each frame to cuda:0 instead of giving a zero-copy view. The views now name
    cuda:<ImportSpec.device>. The GPU-side wait (cudaStreamWaitEvent) also goes to the stream of
    ImportSpec.device now. Before, it went to the current device's stream, so work on the views was
    not ordered after the producer's event. Checked with fakes only, not on a two-GPU host.
  • A CuPy that cannot reach a CUDA device no longer stops Importer from connecting. CuPy
    imports fine on a host with no GPU, or with a driver too old for the CuPy wheel. The importer
    built its CuPy views at connect time, and the CUDA error from that build stopped numpy and
    torch consumers from connecting. The importer now builds the CuPy views only when
    cupy.cuda.runtime.getDeviceCount() is above 0. get_frame_cupy() raises a clear
    RuntimeError in that case.

Changed

  • C++ TOPs rebuilt at 2.3.2, and a 2.3.2 .tox. The TOP code and the .tox glue did not
    change. The DLLs and the .tox carry the 2.3.2 stamp, so every part of a 2.3.2 install names
    one version. A 2.3.0 or 2.3.1 .tox also accepts a 2.3.2 install (ADR-0018).