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

blas_neon: fix compiler errors in aarch64/Linux #2430

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

myungjoo
Copy link
Member

@myungjoo myungjoo commented Jan 26, 2024

With stricter compilers, fp16 codes are not compilable.
To enable testing in non-android, fix type mismatches.

@s-debadri Note that there have been critical errors that Android compilers have ignored:

for (; idx < (size - idx) >= 8; idx += 8) {

a < b >= c is not interpreted by C/C++ compilers as intended.
It is going to be interpreted as: ( a < b ) ? ( 1 >= c ) : ( 0 >= c ), not (a < b) && (b >= c)
The compiler must have complained about this error/warning. Please DO NOT ignore or suppress them. Correct the code if there are warnings, please.

And float Y32[rows]; (rows is a variable) is not in C/C++ syntax.

@taos-ci
Copy link
Collaborator

taos-ci commented Jan 26, 2024

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2430. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@myungjoo, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Collaborator

@jijoongmoon jijoongmoon left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@djeong20 djeong20 left a comment

Choose a reason for hiding this comment

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

LGTM

nntrainer/tensor/blas_neon.cpp Outdated Show resolved Hide resolved
With stricter compilers, fp16 codes are not compilable.
To enable testing in non-android, fix type mismatches.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@myungjoo, 💯 All CI checkers are successfully verified. Thanks.

@myungjoo myungjoo merged commit 75b0faa into nnstreamer:main Jan 29, 2024
29 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.

4 participants