pytorch / pytorch/executorch

Rename `executorch` cmake target to `prim_ops_lib`

Open
#11,761 7 comments 0 reactions 1 assignee View on GitHub

@JawadKhan65 is already working on this.

Since Jun 18, 2025.

good first issue
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🚀 The feature, motivation and pitch

As titled. The cmake target executorch is confusing, it only contains executorch_core and register_prim_ops.cpp. It would be good if we can change the name to prim_ops_lib, following the pattern of portable_ops_lib and optimized_ops_lib.

After the renaming, it would be good to change executorch-config.cmake to add target_link_options_shared_lib(prim_ops_lib) there. Then we can get rid of code like:

https://github.com/pytorch/executorch/blob/main/examples/models/llama/CMakeLists.txt#L82-L83

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.