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

Hexagon build changes after rebase #6388

Merged
merged 1 commit into from May 16, 2024
Merged

Conversation

ejparkqc
Copy link
Contributor

@ejparkqc ejparkqc commented May 8, 2024

I had two new errors, so I updated the build recipe for Hexagon.

  1. I found XNNPACK_ENABLE_RISCV_VECTOR=ON caused compilation error, so disabled this cmake variable. If you find any issue with this change for Hexagon build, please let me know.
  2. This is related to our long discussion about using <int32_t> with min/max function. I found one more tester had compilation issue, so added <int32_t>.

@@ -1148,7 +1148,7 @@ class DeconvolutionOperatorTester {
for (size_t g = 0; g < groups(); g++) {
for (size_t oc = 0; oc < group_output_channels(); oc++) {
int32_t range = w8dist(rng);
auto weights_dist = std::uniform_int_distribution<int32_t>(std::min(range, 0), std::max(range, 0));
auto weights_dist = std::uniform_int_distribution<int32_t>(std::min<int32_t>(range, 0), std::max<int32_t>(range, 0));
Copy link
Contributor

Choose a reason for hiding this comment

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

INT32_C(0) for the constants instead?

Copy link
Contributor Author

@ejparkqc ejparkqc May 16, 2024

Choose a reason for hiding this comment

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

Quickly tried INT32_C(0) but no luck unfortunately. I will keep investigating if we have better solution than this but this can be merged now as I rebased again.

@copybara-service copybara-service bot merged commit 7fabcac into google:master May 16, 2024
3 checks passed
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

2 participants