Skip to content

Conversation

@Qengineering
Copy link

PR devices

ARM

PR types

Bug fixes

PR changes

build.sh and build_linux.sh

Description

When running on a aarch64 or armv7l device like a Raspberry PI or Jetson Nano, the compilation of the Optimize tool will error with impossible constraint in asm. It is caused by the branch #ifdef LITE_WITH_X86 in device_info.cc, being still active while running an ARM device. Forcing the -DLITE_WITH_X86 CMake parameter to follow the found OS, it is solved.

@paddle-bot
Copy link

paddle-bot bot commented Apr 1, 2023

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Apr 1, 2023

CLA assistant check
All committers have signed the CLA.

@paddle-bot
Copy link

paddle-bot bot commented Apr 2, 2024

Automatically closed by Paddle-bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants