cupy icon indicating copy to clipboard operation
cupy copied to clipboard

Support cuTENSOR wheel

Open leofang opened this issue 3 years ago • 2 comments

This issue tracks two aspects of the cuTENSOR wheel:

  1. The installer (cupyx.tools.install_library) can take advantage of the cuTENSOR wheel
    • ideally we wanna do pip install cutensor so that pip is made aware of it
    • potential issue:
      • the cutensor wheel is very large (~300 MB as of 1.6.0) as it contains 3 versions (10.2, 11.0, 11), we are internally discussing if we can split it
  2. The runtime loader (cupy._environment._preload_library('cutensor')) should first check from site-packages:
    • This issue is more urgent as we (cuQuantum) noticed wheel users can end up loading two copies of libcutensor.so, causing potentially hard-to-debug problems.

@kmaehashi I'd like to get the second aspect addressed asap.

leofang avatar Aug 16 '22 21:08 leofang

  1. The installer (cupyx.tools.install_library) can take advantage of the cuTENSOR wheel

    • ideally we wanna do pip install cutensor so that pip is made aware of it

    • potential issue:

      • the cutensor wheel is very large (~300 MB as of 1.6.0) as it contains 3 versions (10.2, 11.0, 11), we are internally discussing if we can split it

Sounds good. (note: cuTENSOR for Windows seem unavailable on PyPI)

  1. The runtime loader (cupy._environment._preload_library('cutensor')) should first check from site-packages:

    • This issue is more urgent as we (cuQuantum) noticed wheel users can end up loading two copies of libcutensor.so, causing potentially hard-to-debug problems.

I was just thinking of a similar. I think it's OK to do this.

kmaehashi avatar Aug 17 '22 01:08 kmaehashi

(note: cuTENSOR for Windows seem unavailable on PyPI)

Thanks for bringing this up 🙂 I'll bring this up for internal discussion. cuQuantum is currently the only consumer of cuTENSOR wheels so Windows was not yet prioritized.

leofang avatar Aug 17 '22 02:08 leofang

It's done in #7025

kmaehashi avatar Jun 19 '24 09:06 kmaehashi