Skip to content
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

[math] Add new customize operators with cupy #653

Merged
merged 9 commits into from
Mar 20, 2024
Merged

Conversation

Routhleck
Copy link
Collaborator

@Routhleck Routhleck commented Mar 15, 2024

Although we can now use the flexible taichi custom operator approach, taichi on cuda does not have more fine-grained control or optimization for some scenarios. So for such scenarios, we can use cupy's RawModule(https://docs.cupy.dev/en/stable/user_guide/kernel.html#raw-kernels) or jit.rawkernel(https://docs.cupy.dev/en/stable/user_guide/kernel.html#jit-kernel-definition) to compile and run CUDA native code directly as strings in real time for finer grained control.

@Routhleck
Copy link
Collaborator Author

cupy/cupy#8232

@chaoming0625
Copy link
Collaborator

Before merging this PR, I will give some modifications.

@chaoming0625 chaoming0625 merged commit 3866203 into master Mar 20, 2024
36 of 38 checks passed
@chaoming0625 chaoming0625 deleted the cupy-customize-op branch March 20, 2024 09:11
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.

None yet

2 participants