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

compare the content of WEBGPU_BUFFER, not the address #21967

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

guschmue
Copy link
Contributor

@guschmue guschmue commented Sep 3, 2024

On linux (not sure about windows) WEBGPU_BUFFER is defined in multiple object files and comparing the address is not sufficient - use strcmp.
onnxruntime uses strcmp for the most but there are some other places that compare against address which might make trouble if passed acrross object file boundary.

@fs-eire
Copy link
Contributor

fs-eire commented Sep 3, 2024

Thanks for catching this.

I think I didn't catch this maybe because of LTCG is ON?

@fs-eire fs-eire merged commit 50ea9eb into fs-eire/webgpu-ep Sep 3, 2024
46 checks passed
@fs-eire fs-eire deleted the gs/wgpu1 branch September 3, 2024 23:41
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