Skip to content

[setup] support pre-build and jit-build of cuda kernels #2374

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 6, 2023

Overview

It will in the best interest of the user if they can install colossalai smoothly. As discussed in #2337 , we should support two way kernel build:

  1. build kernel during installation
  2. build kernel only when needed during runtim

Issue Number

Fixed #2337

What does this PR do?

This PR has done several things:

  1. removed rubbish files in colossalai._C which were pushed one month ago for no reason
  2. enabled prebuild and runtime-build for all existing kernels
  3. refactored the files which use these kernels
  4. add a README.md for the op builder

@FrankLeeeee FrankLeeeee merged commit 40d376c into hpcaitech:main Jan 6, 2023
@FrankLeeeee FrankLeeeee deleted the hotfix/build-kernel-when-needed branch January 26, 2023 07:44
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]: Build kernel only when executed
2 participants