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

fix: kernel launch failure due to smem overflow #20

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

jcao-ai
Copy link

@jcao-ai jcao-ai commented Nov 22, 2023

Ifsmem > 46 * 1024, we should manually call cudaFuncSetAttribute(..., cudaFuncAttributeMaxDynamicSharedMemorySize, ...) to ensure kernel is launched successfully.

Copy link
Contributor

@yzh119 yzh119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, LGTM!

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1495038) 30.57% compared to head (060820f) 30.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #20   +/-   ##
=======================================
  Coverage   30.57%   30.57%           
=======================================
  Files           9        9           
  Lines         677      677           
=======================================
  Hits          207      207           
  Misses        470      470           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abcdabcd987 abcdabcd987 merged commit a6b6ab9 into punica-ai:master Nov 22, 2023
4 checks passed
@abcdabcd987
Copy link
Contributor

Awesome! Thanks! I'll add test cases.

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

3 participants