Open 1234shel opened 4 years ago
Hi @1234shel,
Sorry about that. The legacy version can only be installed by building the legacy branch of Taichi from source. What kind of compilation errors are you getting?
Hi @yuanming-hu,
Thanks for your response. I downloaded the legacy files from here: https://github.com/yuanming-hu/taichi/tree/legacy.
Once I run the command python3 install.py it starts building the library. It stops at around 65% with a bunch of different errors:
taichi-legacy/include/taichi/math/math.h:58:12: error: no match for call to ‘(const taichi::MatrixND<3, double, taichi::InstSetExt::AVX2>) (int)’ 58 | ret = t(0);
taichi-legacy/include/taichi/math/math.h:44:14: error: cannot convert ‘const taichi::VectorND<4, float, taichi::InstSetExt::AVX2>’ to ‘float’ in argument passing 44 | ret = f(t);
taichi-legacy/include/taichi/math/math.h:31:23: error: ‘dim’ is not a member of ‘std::decay_t<const float&>’ {aka ‘float’} 31 | for (int i = 0; i < std::decay_t<decltype(t)>::dim; i++) {
taichi-legacy/include/taichi/common/meta.h:79:8: error: ‘void taichi::STATICIF::statement
taichi-legacy/include/taichi/common/meta.h:90:8: error: ‘void taichi::STATICIF::statement
This is not an exhaustive list but nearly all errors have something to do with math.h and meta.h.
Hi @1234shel Could you try on a machine with AVX2 support (i.e. Intel Haswell generation, released 2013)?
I am running this on a parallels VM with Ubuntu. My machine is a Apple Macbook Pro which runs on AMD Radeon Pro 5500M . I think AMD Radeon should support AVX2 but I am not sure. This is the only machine I have access to for the moment.
I see. Many users have reported that using virtual machines leads to this problem....
I tried running on the Mac itself (outside the VM) and got the following error:
[100%] Built target taichi_core
Traceback (most recent call last):
File "
It did much better this time and reached 100% build but then crashed due to the above error. Do you have a fix for this?
@yuanming-hu do you have a solution for the above error?
Hi, I am trying to run the examples for mpm but I keep getting this error: Traceback (most recent call last): File "/taichi_mpm-master/scripts/mls-cpic/banana.py", line 8, in
mpm = tc.dynamics.MPM(
AttributeError: module 'taichi' has no attribute 'dynamics'
I installed taichi using 'pip install'. Then I got the above error. I tried uninstalling and re-installing using the legacy link given but the install file keeps giving compile error. I have seen other people post about this as well under the "issues" section on github but no response. I hope you can help us out.