Closed ko-work closed 5 months ago
I forgot to upload tcm archive
And I was using inconsistent architectures which caused bad keys when reading the module did not see at first in the log, also module names were wrong.
here is an updated example just in case someone would came across this test_aot_issue.zip
Hi! Thanks for your work.
I would like to use Taichi with android. Based on the tests I am trying to create a very simple initial example, but I am getting all zeros. https://github.com/taichi-dev/taichi/blob/52b24f3e09c093610b1ecf69b5e33cbc66b7bd6d/tests/cpp/aot/python_scripts/shared_array_aot_test_.py and https://github.com/taichi-dev/taichi/blob/52b24f3e09c093610b1ecf69b5e33cbc66b7bd6d/c_api/tests/c_api_aot_test.cpp
ubuntu 22.04 ndk version 25.1.8937393 taichi commit 52b24f3e09c093610b1ecf69b5e33cbc66b7bd6d
I have built android taichi with the scripts/build-taichi-android.sh (-DTI_WITH_VULKAN=ON).
Here is the code:
app.py
app.cpp
CMakeLists.txt
the command:
python app.py
cmake --build build -j 4
the log of running python and cmake:
On device in the folder there is the so and the executable.
The output:
The result is the same with cpu gles and vulkan (changed in both python and cpp)