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

[metal] Remove global constant def section #1056

Merged
merged 1 commit into from
May 25, 2020
Merged

Conversation

k-ye
Copy link
Member

@k-ye k-ye commented May 25, 2020

This was added back in #729 , because constants were optimized away across kernels. As a workaround, I defined all the constants at the namespace scope, which worked thanks to SSA.

However, this approach blocked me from merging multiple Metal kernels into one source code file, which was useful for profiling. So I'd like to revert this workaround now..

Related issue = #729

[Click here for the format server]

@k-ye k-ye changed the title [meta] Remove global constant def section [metal] Remove global constant def section May 25, 2020
Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

SGTM. Thanks!

@k-ye k-ye merged commit ae785ad into taichi-dev:master May 25, 2020
@k-ye k-ye deleted the consts branch May 25, 2020 14:13
@yuanming-hu yuanming-hu mentioned this pull request May 31, 2020
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