WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 17, 2025

Problem

The CUDA 13.x configurations in dist_config.py had TODO comments indicating that cuTENSOR support needed to be re-added. This meant that CuPy wheels built for CUDA 13 (cupy-cuda13x) could not preload cuTENSOR, unlike CUDA 11.x and 12.x packages which already had this functionality.

Solution

This PR enables cuTENSOR preloading for CUDA 13.x packages by:

  1. Adding cuTENSOR to Linux x86_64 preloads: Updated the CUDA 13.x configuration to include 'cutensor' in the preloads list alongside 'nccl', matching the pattern used in CUDA 11.x and 12.x.

  2. Adding cuTENSOR to Windows preloads: Updated the CUDA 13.x Windows configuration to include 'cutensor' in the preloads list.

  3. Maintaining aarch64 consistency: Kept the CUDA 13.x aarch64 configuration with only 'nccl' in preloads, following the established pattern for aarch64 builds across all CUDA versions (11.x, 12.x, and 13.x).

  4. Updating tests: Removed the skip condition in test_preload.py that prevented cuTENSOR testing on CUDA 13+.

Changes

dist_config.py:

  • Line 183: 'preloads': ['nccl']'preloads': ['cutensor', 'nccl'] (CUDA 13.x x86_64)
  • Line 277: 'preloads': []'preloads': ['cutensor'] (CUDA 13.x Windows)

release-tests/pkg_wheel/test_preload.py:

  • Removed lines 37-39 that skipped cuTENSOR testing for CUDA 13+

Verification

All linters pass (ruff, autopep8, mypy) and the configurations now follow the established pattern from CUDA 11.x and 12.x releases.

Original prompt

Fix the build scripts so that CuPy binary package (wheel) built for CUDA 13 (cupy-cuda13x) can preload cuTENSOR.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix build scripts to preload cuTENSOR for cupy-cuda13x Enable cuTENSOR preload support for CUDA 13.x binary packages Oct 17, 2025
Copilot AI requested a review from kmaehashi October 17, 2025 08:39
Copilot finished work on behalf of kmaehashi October 17, 2025 08:39
@kmaehashi kmaehashi marked this pull request as ready for review October 17, 2025 11:14
@kmaehashi
Copy link
Member

kmaehashi commented Oct 17, 2025

xref #9429
Will kick CI and merge after install_library.py is updated.

@kmaehashi
Copy link
Member

/test

@kmaehashi
Copy link
Member

Will retrigger CI after merging cupy/cupy#9492

@kmaehashi
Copy link
Member

/test mini

@kmaehashi
Copy link
Member

/test mini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants