Skip to content

[setup] make cuda extension build optional #2336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

FrankLeeeee
Copy link
Contributor

@FrankLeeeee FrankLeeeee commented Jan 5, 2023

Overview

It will in the best interest of the user if they can install colossalai smoothly. Currently, we force the user to build CUDA extensions upon pip install, which leads to much convenience.

Issue Number

Fixed #2334

What does this PR do?

This PR make building CUDA extension optional in the setup.py.

# install without cuda ext
pip install colossalai

# install with cuda ext
CUDA_EXT=1 pip install colossalai

@FrankLeeeee FrankLeeeee merged commit f1bc241 into hpcaitech:main Jan 5, 2023
@FrankLeeeee FrankLeeeee deleted the hotfix/make-cuda-ext-optional branch January 26, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Make CUDA extensions default to optional
2 participants