-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi, I am working on benchmarking some algorithms with Taichi-AOT on mobile phones. I built the libtaichi_c_api.so and libtaichi_unity.so for android according to the instructions. However, when I launch the launch the unity project on my phone, the scene with armadillo shows but fails to run simulation steps. Here 's the errors I got from logcat:
E InvalidOperationException: Ignored launch because kernel handle is null at Taichi.ComputeGraph.LaunchAsync
(Taichi.Generated.TiNamedArgument[] namedArgs) [0x00020] in /......./Taichi-UnityExample/Assets/Taichi/ComputeGraph.cs:20 at Taichi.ComputeGraph.LaunchAsync
(System.Collections.Generic.Dictionary`2[TKey,TValue] namedArgs) [0x0014e] in /......./Taichi-UnityExample/Assets/Taichi/ComputeGraph.cs:53 at ImplicitFem.Update () [0x0028b] in /......./Taichi-UnityExample/Assets/Scripts/ImplicitFem.cs:218
It seems that it failed to launch the kernel.
In fact, one month ago(Oct. 1), I managed to launch the demo, with taichi-unity2@196fa01 and Taichi with my minor hacking (you can find it in my fork). But it has some problem with memory (That's why I did some hack). It seems that the recent version of taichi-unity2 fixes the problem of memory but causes the errors above.
I really need this demo to work normally since it is part of my project, so any advices will be very appreciated ! Thanks in advance.