Skip to content

[math] Add new customize operators with cupy#653

Merged
chaoming0625 merged 9 commits intomasterfrom
cupy-customize-op
Mar 20, 2024
Merged

[math] Add new customize operators with cupy#653
chaoming0625 merged 9 commits intomasterfrom
cupy-customize-op

Conversation

@Routhleck
Copy link
Copy Markdown
Member

@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
Copy Markdown
Member Author

cupy/cupy#8232

@Routhleck Routhleck requested a review from chaoming0625 March 15, 2024 02:46
@chaoming0625
Copy link
Copy Markdown
Member

Before merging this PR, I will give some modifications.

@chaoming0625 chaoming0625 merged commit 3866203 into master Mar 20, 2024
@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.

2 participants