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

Add cudaFuncSetAttribute #203

Closed
EricLBuehler opened this issue Feb 6, 2024 · 2 comments
Closed

Add cudaFuncSetAttribute #203

EricLBuehler opened this issue Feb 6, 2024 · 2 comments

Comments

@EricLBuehler
Copy link

Hello @coreylowman,

I have been working on candle-vllm and realized their implementation used cudaFuncSetAttribute and cudaFuncAttributeMaxDynamicSharedMemorySize to set the max shared memory size. How could I emulate this behavior in Rust using this framework?

@guoqingbao
Copy link

Hello @coreylowman,

I have been working on candle-vllm and realized their implementation used cudaFuncSetAttribute and cudaFuncAttributeMaxDynamicSharedMemorySize to set the max shared memory size. How could I emulate this behavior in Rust using this framework?

You may use cuFuncSetAttribute and cuFuncSetSharedMemConfig in this crate. See this: https://github.com/coreylowman/cudarc/blob/main/src/driver/sys.rs.

@EricLBuehler
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants