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

Add patch upstream status. #86

Merged
merged 6 commits into from
Jun 19, 2024
Merged

Add patch upstream status. #86

merged 6 commits into from
Jun 19, 2024

Conversation

NobuoTsukamoto
Copy link
Owner

No description provided.

Copy link
Owner Author

@NobuoTsukamoto NobuoTsukamoto left a comment

Choose a reason for hiding this comment

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

OK

@NobuoTsukamoto NobuoTsukamoto self-assigned this Jun 16, 2024
EXTRA_OECMAKE:append:raspberrypi3-64 = " -DTFLITE_ENABLE_XNNPACK=ON"
EXTRA_OECMAKE:append:raspberrypi4 = " -DTFLITE_ENABLE_XNNPACK=OFF"
EXTRA_OECMAKE:append:raspberrypi4-64 = " -DTFLITE_ENABLE_XNNPACK=ON"
EXTRA_OECMAKE:append:raspberrypi5 = " -DTFLITE_ENABLE_XNNPACK=ON"

Choose a reason for hiding this comment

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

You are doing configuration per Machine, it would be better to do configuration per Architecture

Here you want to enable for aarch64 but not for armv7
so you could just do

EXTRA_OECMAKE:append:aarch64 = " -DTFLITE_ENABLE_XNNPACK=ON"

Another improvement is to use PackageConfig

Declare a PackageConfig like

PACKAGECONFIG[xnnpack] = "-DTFLITE_ENABLE_XNNPACK=ON, -DTFLITE_ENABLE_XNNPACK=OFF"

An then set the default PACAKAGECONFIG regarding your architecture

PACKAGECONFIG:append: = "xnnpack"

Copy link
Owner Author

Choose a reason for hiding this comment

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

Change the configuration to EXTRA_OECMAKE by architecture, not by machine.

@NobuoTsukamoto NobuoTsukamoto merged commit 1065e72 into main Jun 19, 2024
0 of 14 checks passed
@NobuoTsukamoto NobuoTsukamoto deleted the patch_upstream_statu branch June 19, 2024 22:30
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