-
Notifications
You must be signed in to change notification settings - Fork 625
Rename CMake target 'executorch' to 'prim_ops_lib' for clarity #11786
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
base: main
Are you sure you want to change the base?
Changes from all commits
4bc106e
e9beecb
435fdbd
88db625
3960a92
25ce87b
906472a
7b207f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,10 @@ if(EXECUTORCH_CADENCE_CPU_RUNNER) | |
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake) | ||
|
||
set(_common_compile_options -Wno-deprecated-declarations -fPIC) | ||
|
||
# Find prebuilt libraries. executorch package should contain portable_ops_lib, | ||
# etdump, bundled_program. | ||
find_package(executorch CONFIG REQUIRED) | ||
target_link_options_shared_lib(executorch) | ||
# Note: target_link_options_shared_lib(prim_ops_lib) is now called automatically in executorch-config.cmake | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just remove this |
||
target_link_options_shared_lib(portable_ops_lib) | ||
|
||
target_include_directories(executorch INTERFACE ${_common_include_directories}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ set(_common_include_directories ${EXECUTORCH_ROOT}/..) | |
# Find prebuilt libraries. executorch package should contain portable_ops_lib, | ||
# etdump, bundled_program. | ||
find_package(executorch CONFIG REQUIRED) | ||
target_link_options_shared_lib(executorch) | ||
# Note: target_link_options_shared_lib(prim_ops_lib) is now called automatically in executorch-config.cmake | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove |
||
target_link_options_shared_lib(portable_ops_lib) | ||
|
||
target_include_directories(executorch INTERFACE ${_common_include_directories}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ find_package(gflags REQUIRED) | |
# find `executorch` libraries Same as for gflags | ||
set(executorch_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../../lib/cmake/ExecuTorch) | ||
find_package(executorch CONFIG REQUIRED) | ||
target_link_options_shared_lib(executorch) | ||
# Note: target_link_options_shared_lib(prim_ops_lib) is now called automatically in executorch-config.cmake | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
|
||
# llava_runner library | ||
add_subdirectory(runner) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,10 @@ set_target_properties(fbjni PROPERTIES | |
) | ||
|
||
set(executorch_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../lib/cmake/ExecuTorch) | ||
target_link_options_shared_lib(executorch) | ||
|
||
find_package(executorch CONFIG REQUIRED) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm we don't need this right? |
||
# target_link_options_shared_lib(executorch) is now handled by executorch-config.cmake | ||
|
||
Comment on lines
+66
to
+67
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
|
||
add_library(executorch_jni SHARED jni/jni_layer.cpp jni/log.cpp jni/jni_layer_runtime.cpp) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ endforeach() | |
set(EXECUTORCH_FOUND ON) | ||
|
||
target_link_libraries(executorch INTERFACE executorch_core) | ||
target_link_options_shared_lib(prim_ops_lib) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add this to line 177? |
||
|
||
set(lib_list | ||
flatccrt | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like duplicate? We just need one of the installs