File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
examples/models/moshi/mimi Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ build_cmake_executor_runner() {
6767 echo " Backend $backend_string_select selected"
6868 cmake -DCMAKE_BUILD_TYPE=Release \
6969 -DEXECUTORCH_BUILD_CUDA=ON \
70+ -DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
7071 ${COMMON} \
7172 -B${CMAKE_OUTPUT_DIR} .
7273 cmake --build ${CMAKE_OUTPUT_DIR} -j4
Original file line number Diff line number Diff line change @@ -1031,7 +1031,9 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
10311031 extension_runner_util gflags executorch_backends
10321032 )
10331033
1034- list (APPEND _executor_runner_libs ${_executorch_extensions} )
1034+ if (EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR)
1035+ list (APPEND _executor_runner_libs extension_flat_tensor)
1036+ endif ()
10351037
10361038 if (EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
10371039 list (APPEND _executor_runner_libs optimized_native_cpu_ops_lib)
Original file line number Diff line number Diff line change 88set -x
99
1010conda install -c conda-forge " ffmpeg<8" -y
11- pip install torchcodec==0.7.0.dev20250906 --extra-index-url https://download.pytorch.org/whl/nightly/cpu
11+ pip install torchcodec==0.7.0.dev20250929 --extra-index-url https://download.pytorch.org/whl/nightly/cpu
1212pip install moshi==0.2.4
1313pip install bitsandbytes soundfile
1414# Run llama2/install requirements for torchao deps
Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ define_overridable_option(
145145define_overridable_option(
146146 EXECUTORCH_BUILD_CORTEX_M "Build the Cortex-M backend" BOOL OFF
147147)
148+ define_overridable_option(
149+ EXECUTORCH_BUILD_CUDA "Build the CUDA backend" BOOL OFF
150+ )
148151define_overridable_option(
149152 EXECUTORCH_BUILD_VGF "Build the Arm VGF backend" BOOL OFF
150153)
@@ -342,6 +345,10 @@ check_required_options_on(
342345 EXECUTORCH_BUILD_EXTENSION_LLM
343346)
344347
348+ check_required_options_on(
349+ IF_ON EXECUTORCH_BUILD_CUDA REQUIRES EXECUTORCH_BUILD_EXTENSION_TENSOR
350+ )
351+
345352if (NOT EXISTS ${EXECUTORCH_PAL_DEFAULT_FILE_PATH} )
346353 message (
347354 FATAL_ERROR
You can’t perform that action at this time.
0 commit comments