Open oliver-batchelor opened 1 year ago
Hi @oliver-batchelor ! The warning seems to be related to a mismatch in the following inline assembly code in taichi/runtime/llvm/runtime_module/runtime.cpp
asm volatile("match.any.sync.b64 %0, %1, %2;"
: "=r"(ret)
: "l"(value), "r"(mask));
return ret;
Please try to change the "l"
constraint to "i"
and see if the warning resolves. BTW, I found using gcc
might cause some weird issues after the compilation, so avoid gcc
if you can.
Thanks! It works like a charm.
Is this a change which can be committed or will it break other architectures?
Is this a change which can be committed or will it break other architectures?
You can submit a PR changing this and we can trigger a CI run for you
Hello,Did you successfully compile the library under the ARM architecture in the end?
On a fresh install on a Jetson Xavier AGX with Jetpack 5.1.1-b56, I have installed llvm-15 via. conda (conda-forge) and built it in a conda environment with python 3.9. This same method has worked for building from source for me previously on x86. The error looks very similar to that in #3872
I'm getting this error, regardless if my compiler is gcc-12 or clang-15.
Any tips much appreciated, has anyone had experience building on ARM?
/home/canterbury/mambaforge/envs/conan_ros/lib/python3.9/site-packages/cmake/data/bin/cmake /home/canterbury/taichi -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/home/canterbury/taichi/_skbuild/linux-aarch64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.16 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/home/canterbury/mambaforge/envs/conan_ros/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/canterbury/mambaforge/envs/conan_ros/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/canterbury/mambaforge/envs/conan_ros/include/python3.9 -DPYTHON_LIBRARY:PATH=/home/canterbury/mambaforge/envs/conan_ros/lib/libpython3.9.so -DPython_EXECUTABLE:PATH=/home/canterbury/mambaforge/envs/conan_ros/bin/python -DPython_ROOT_DIR:PATH=/home/canterbury/mambaforge/envs/conan_ros -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/home/canterbury/mambaforge/envs/conan_ros/include/python3.9 -DPython_NumPy_INCLUDE_DIRS:PATH=/home/canterbury/mambaforge/envs/conan_ros/lib/python3.9/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/home/canterbury/mambaforge/envs/conan_ros/bin/python -DPython3_ROOT_DIR:PATH=/home/canterbury/mambaforge/envs/conan_ros -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/home/canterbury/mambaforge/envs/conan_ros/include/python3.9 -DPython3_NumPy_INCLUDE_DIRS:PATH=/home/canterbury/mambaforge/envs/conan_ros/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/home/canterbury/mambaforge/envs/conan_ros/lib/python3.9/site-packages/ninja/data/bin/ninja -DTI_WITH_OPENGL=OFF -DTI_WITH_GGUI=OFF -DTI_VERSION_MAJOR=1 -DTI_VERSION_MINOR=7 -DTI_VERSION_PATCH=0 -DCMAKE_BUILD_TYPE:STRING=Release