Skip to content

Commit ea98859

Browse files
gcarranza-1copybara-github
authored andcommitted
Switch async_segmentation_gpu to use libLiteRtOpenClAccelerator.so.
LiteRT-PiperOrigin-RevId: 828451462
1 parent 55623ca commit ea98859

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

litert/samples/async_segmentation/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ cc_binary(
9191
":shader_files",
9292
":test_images",
9393
"//litert/c:litert_runtime_c_api_shared_lib", # buildcleaner: keep
94-
"@litert_gpu//:jni/arm64-v8a/libLiteRtGpuAccelerator.so", # copybara:comment
94+
"@litert_gpu//:jni/arm64-v8a/libLiteRtOpenClAccelerator.so", # copybara:comment
9595
# copybara:uncomment "//litert/runtime/accelerators/gpu:ml_drift_cl_accelerator_so",
9696
],
9797
linkopts = litert_android_linkopts() + gles_linkopts(),

litert/samples/async_segmentation/deploy_and_run_on_android.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ adb push "${HOST_MODEL_DIR}/${MODEL_FILENAME}" "${DEVICE_MODEL_DIR}/"
221221
echo "Pushed segmentation models."
222222

223223
# Push c api shared library
224-
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${DEVICE_BASE_DIR}/"
224+
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${DEVICE_BASE_DIR}/"
225225
adb push "${C_LIBRARY_LOCATION}/libLiteRtRuntimeCApi.so" "${DEVICE_BASE_DIR}/"
226226
echo "Pushed c api shared library."
227227

228228
# Push gpu accelerator shared library
229-
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${DEVICE_BASE_DIR}/"
229+
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${DEVICE_BASE_DIR}/"
230230
if [[ "$ACCELERATOR" == "gpu" ]]; then
231-
adb push "${HOST_GPU_LIBRARY_DIR}/libLiteRtGpuAccelerator.so" "${DEVICE_BASE_DIR}/"
231+
adb push "${HOST_GPU_LIBRARY_DIR}/libLiteRtOpenClAccelerator.so" "${DEVICE_BASE_DIR}/"
232232
fi
233233
echo "Pushed gpu accelerator shared library."
234234

0 commit comments

Comments
 (0)