File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed
runtime/core/portable_type Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+
3
+ int main (int argc, char ** argv)
4
+ {
5
+ std::cout << " Hello World!" << std::endl;
6
+ return 0 ;
7
+ }
Original file line number Diff line number Diff line change 17
17
cmake_minimum_required (VERSION 3.19 )
18
18
project (executorch )
19
19
20
- find_package (executorch CONFIG REQUIRED )
20
+ find_package (executorch CONFIG REQUIRED COMPONENTS vulkan_backend )
21
21
find_package (GTest CONFIG REQUIRED )
22
22
23
+ # Only build tests if Vulkan was compiled
24
+ find_library (LIB_VULKAN_BACKEND vulkan_backend )
25
+
26
+ if (LIB_VULKAN_BACKEND )
27
+
23
28
if (NOT EXECUTORCH_ROOT )
24
29
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
25
30
endif ()
@@ -80,3 +85,5 @@ target_link_libraries(
80
85
test_shaderlib
81
86
)
82
87
target_compile_options (vulkan_compute_api_test PRIVATE ${VULKAN_CXX_FLAGS} )
88
+
89
+ endif ()
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ def define_common_targets():
26
26
visibility = [
27
27
"//executorch/runtime/core/exec_aten/..." ,
28
28
"//executorch/runtime/core/portable_type/test/..." ,
29
- "//executorch/backends/..." ,
30
29
],
31
30
exported_deps = [
32
31
":scalar_type" ,
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ build_and_run_test() {
27
27
local test_dir=$1
28
28
cmake " ${test_dir} " -Bcmake-out/" ${test_dir} " -DCMAKE_INSTALL_PREFIX=cmake-out
29
29
cmake --build cmake-out/" ${test_dir} " -j9
30
- for t in cmake-out/" ${test_dir} " /* test; do ./" $t " ; done
30
+
31
+ for t in cmake-out/" ${test_dir} " /* test; do
32
+ if [ -e $t ]; then
33
+ ./" $t " ;
34
+ fi
35
+ done
31
36
}
32
37
33
38
probe_tests () {
You can’t perform that action at this time.
0 commit comments