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

executorch Undefined symbols for architecture arm64: "executorch::extension::make_tensor_ptr" #8036

Open
Olgacmt opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
module: extension Issues related to code under extension/ triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@Olgacmt
Copy link

Olgacmt commented Jan 29, 2025

Building executroch runner and getting an error:

executorch Undefined symbols for architecture arm64: "executorch::extension::make_tensor_ptr

Using a function cmake_install_executorch_lib from .ci/scripts/utils.sh I am trying to build executroch runner, on MacOS with Apple M3 Pro, in examples/portable/executor_runner. I've update a part of the code that creates a dummy input tensor to be resized. Here is a part of the changes code:
replace code:

auto inputs = executorch::extension::prepare_input_tensors(*method);

with code from Providing Raw Data with Custom Deleter:

auto input_tensor = make_tensor_ptr(
        {1, 2, 3},                          // sizes
        data,                               // data pointer
        ScalarType::Float,                  // double scalar type
        TensorShapeDynamism::DYNAMIC_BOUND, // some default dynamism
        [](void *ptr) { delete[] static_cast<double *>(ptr); });

Do I need to build execution with additional parameters to build additional libraries, or has make_tensor_ptr not been implemented for arm64 architecture?

@Olgacmt Olgacmt changed the title executorch Undefined symbols for architecture arm64: "executorch::extension::make_tensor appl_ptr executorch Undefined symbols for architecture arm64: "executorch::extension:: make_tensor_ptr Jan 29, 2025
@Olgacmt Olgacmt changed the title executorch Undefined symbols for architecture arm64: "executorch::extension:: make_tensor_ptr executorch Undefined symbols for architecture arm64: "executorch::extension::make_tensor_ptr" Jan 29, 2025
@manuelcandales manuelcandales added module: extension Issues related to code under extension/ triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: extension Issues related to code under extension/ triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants