-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Issues #42
Comments
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)’ 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 taichi-legacy/include/taichi/math/math.h:31:23: error: ‘dim’ is not a member of ‘std::decay_t<const float&>’ {aka ‘float’} taichi-legacy/include/taichi/common/meta.h:79:8: error: ‘void taichi::STATIC_IF::statement::else_(const F&) [with F = taichi::math::sum(const T&) [with T = taichi::VectorND<4, float, taichi::InstSetExt::AVX2>; taichi::type::element = float]::<lambda(const auto:16&)>; bool Cond = true]’, declared using local type ‘const taichi::math::sum(const T&) [with T = taichi::VectorND<4, float, taichi::InstSetExt::AVX2>; taichi::type::element = float]::<lambda(const auto:16&)>’, is used but never defined [-fpermissive] taichi-legacy/include/taichi/common/meta.h:90:8: error: ‘void taichi::STATIC_IF::statement::else_(const F&) [with F = taichi::math::maximum(const T&) [with T = taichi::MatrixND<2, float, taichi::InstSetExt::AVX2>; taichi::type::element = float]::<lambda(const auto:8&)>]’, declared using local type ‘const taichi::math::maximum(const T&) [with T = taichi::MatrixND<2, float, taichi::InstSetExt::AVX2>; taichi::type::element = float]::<lambda(const auto:8&)>’, is used but never defined [-fpermissive] 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 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.
The text was updated successfully, but these errors were encountered: