Anton Lokhmotov

Results 273 comments of Anton Lokhmotov

@gfursin No idea :). @Ziv-Huang's RK3399 is running under Android, while ours is running under Linux. FWIW, the library may be called `libmali.so`. @Chunosov It's weird you could find it.

yzh89 Thanks to our offline investigation, it is now clear what's going wrong. CK sets up the path to the Caffe library as follows: ``` export CK_ENV_LIB_CAFFE_LIB=$CK_TOOLS/lib-caffe-bvlc-master-cpu-master-gcc-4.8.4-linux-64/install/lib ``` However, on...

Hi @eaangi , thank you for your interest in CK-Caffe! CK is not magic. But it can indeed help you cross-compile Caffe to run on Android. However, we haven't tried...

Makes a lot of sense!

Yeah, it was wishful thinking on my behalf :). Changing the labels to `enhancement` and `help wanted`.

A workaround is to use `lib-protobuf-host-3.1.0` (as currently hardcoded in the metadata) or `lib-protobuf-host-3.2.0`. Building with `lib-protobuf-host-trunk` also fails.

Apparently, `std::is_same` is a [C++11 feature](https://askubuntu.com/questions/642545/error-is-same-is-not-a-member-of-std-when-build-c-project-in-ubuntu), therefore the fix was simple: ``` diff --git a/program/caffe-time-opencl/.cm/meta.json b/program/caffe-time-opencl/.cm/meta.json index 1cd6c37..64d8d64 100644 --- a/program/caffe-time-opencl/.cm/meta.json +++ b/program/caffe-time-opencl/.cm/meta.json @@ -109,7 +109,7 @@ "CK_ENV_LIB_CAFFE_EXTRA_INCLUDE" ], "compiler_env":...

Building for Android, however, still fails due to a linking issue : ``` $ ck compile program:caffe-time-opencl --target_os=android21-arm64 ... aarch64-linux-android-g++ -fPIE -pie -c --sysroot /home/anton/usr-local/android-ndk-r14b/platforms/android-21/arch-arm64 -I../ -DANDROID_USE_OPENMP=ON -DBLAS=Open -DCK_HOST_OS_NAME2_LINUX=1 -DCK_HOST_OS_NAME_LINUX=1...

Note that the `tensorrt-test` program relies on the [Jetson inference library](https://github.com/dusty-nv/jetson-inference), which prints messages to stdout that need to be parsed later. With a new `caffe-test` program, we can output...

When setting `--target_os=android21-arm-v7a-hard-neon`, things are worse, which suggests we shouldn't use this setting for this board: ``` $ ck install package:lib-caffe-bvlc-opencl-clblast-universal \ --target_os=android21-arm-v7a-hard-neon \ --env.DISABLE_DEVICE_HOST_UNIFIED_MEMORY=ON \ --env.DISABLE_DOUBLE_SUPPORT=ON $ ck compile...