You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Taichi] version 1.1.2, llvm 10.0.0, commit f25cf4a2, win, python 3.8.13
[Taichi] Starting on arch=x64
[W 10/09/22 19:49:27.691 22784] [D:/a/taichi/taichi/taichi/ir/snode.cpp:create_node@95] Snode index might be out of int32 boundary but int64 indexing is not supported yet.
But 2**31-1 > 40000000*50 is True!
BTW, arr.fill(1.0) also raise an error as below:
By default, Taichi implicitly fits a field in a larger buffer with power-of-two dimensions.
Even though 40000000*50 is smaller than 2^31 - 1, it would still try to allocate 2^31 memory. You could init with packed mode to solve this problem ti.init(arch=ti.cpu, packed=True).
As for the errors when filling arr, it is because of the shape of your field is still too large.
Issue: fix#6258
### Brief Summary
For the script in #6258, which causes overflow only in non-packed mode,
an error will be raised even if `packed=True`. The PR fixes the false
alarm.
Describe the bug
The code will shut down when I try to allocate a big 2D field, maybe it's a bug.
To Reproduce
Log/Screenshots
But 2**31-1 > 40000000*50 is True!
BTW, arr.fill(1.0) also raise an error as below:
The text was updated successfully, but these errors were encountered: