Open theorska opened 4 years ago
Reason:
Currently the taichi_max_num_snodes
is 1024.
Each model will take up a lot of snodes for storage (each scalar field is a snode). It soon reach the limit when there're 14 objects.
The maximum number is decreasing because, there are more and more features added to taichi_three, resulting in more and more snodes-per-model.
Solution:
@yuanming-hu Maybe we should increase this limit (say, to 65536) as there are no real physics limitation there?
But even if it's possible to have more than 14 objects, the JIT compilation would be slow (isn't it?) as each model has a different render
kernel to compile. I'll have a look on how to refactor taichi_three to mock this situation by spliting kernels apart. Thank for reporting!
Hello! I have started using taichi_three not long ago and I noticed between versions 0.0.8 and 0.0.9 the following.
I load objects to visualize different parts of a mechanical simulation. I have made these objects in Blender. Currently, I am trying to load 14+ objects with taichi_three. In 0.0.8 I was able to load 13 objects and when I tried to load in a 14th I've got the following error. I have tried the same with 0.0.9, but in that version, I am only able to load 12 objects, the 13th causes the same error.
I have tried looking at taichi documentation, but I could not find information about the taichi_max_num_snodes. Is there a way maybe to increase it? Or what does it depend on? I have also tried running it on CPU and Cuda and setting the fraction size in ti.init() but those didn't work for me.
Thank you for your answer in advance.