win11 wsl2 cuda-11.8
2023-10-28 install from source code , Taichi-1.7.0
(cuda118) root@LZH5:/mnt/d/Software/AI/taichi/2310/wsl_cuda118# python setup.py develop -DCLANG_EXECUTABLE=/usr/bin/clang
[]
['taichi', 'taichi.ad', 'taichi.algorithms', 'taichi.aot', 'taichi.graph', 'taichi.lang', 'taichi.linalg', 'taichi.math', 'taichi.profiler', 'taichi.sparse', 'taichi.tools', 'taichi.types', 'taichi.ui', 'taichi._lib', 'taichi._snode', 'taichi._ti_module', 'taichi.aot.conventions', 'taichi.aot.conventions.gfxruntime140', 'taichi.lang.ast', 'taichi.lang.simt']
/opt/conda/envs/cuda118/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-11 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-11 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (3.5s)
-- Generating done (0.0s)
-- Build files have been written to: /mnt/d/Software/AI/taichi/2310/wsl_cuda118/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
/mnt/d/Software/AI/taichi/2310/wsl_cuda118/_skbuild/linux-x86_64-3.9/cmake-build
Command:
/opt/conda/envs/cuda118/lib/python3.9/site-packages/cmake/data/bin/cmake /mnt/d/Software/AI/taichi/2310/wsl_cuda118 -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/conda/envs/cuda118/lib/python3.9/site-packages/ninja/data/bin/ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/mnt/d/Software/AI/taichi/2310/wsl_cuda118/_skbuild/linux-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.16 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/opt/conda/envs/cuda118/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/opt/conda/envs/cuda118/bin/python -DPYTHON_INCLUDE_DIR:PATH=/opt/conda/envs/cuda118/include/python3.9 -DPYTHON_LIBRARY:PATH=/opt/conda/envs/cuda118/lib/libpython3.9.so -DPython_EXECUTABLE:PATH=/opt/conda/envs/cuda118/bin/python -DPython_ROOT_DIR:PATH=/opt/conda/envs/cuda118 -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/opt/conda/envs/cuda118/include/python3.9 -DPython_NumPy_INCLUDE_DIRS:PATH=/opt/conda/envs/cuda118/lib/python3.9/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/opt/conda/envs/cuda118/bin/python -DPython3_ROOT_DIR:PATH=/opt/conda/envs/cuda118 -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/opt/conda/envs/cuda118/include/python3.9 -DPython3_NumPy_INCLUDE_DIRS:PATH=/opt/conda/envs/cuda118/lib/python3.9/site-packages/numpy/core/include -DCMAKE_MAKE_PROGRAM:FILEPATH=/opt/conda/envs/cuda118/lib/python3.9/site-packages/ninja/data/bin/ninja -DTI_WITH_VULKAN:BOOL=ON -DTI_WITH_CUDA:BOOL=ON -DTI_VERSION_MAJOR=1 -DTI_VERSION_MINOR=7 -DTI_VERSION_PATCH=0 -DCLANG_EXECUTABLE=/usr/bin/clang -DCMAKE_BUILD_TYPE:STRING=Release
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-11 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-11 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Taichi Version 1.7.0
Commit 37b8e80c8c09d31f1f618b41804178d23c8b89b1
-- Python: Using /opt/conda/envs/cuda118/bin/python as the interpreter
version: 3.9.16
include: /opt/conda/envs/cuda118/include/python3.9
library: /opt/conda/envs/cuda118/lib/libpython3.9.so
numpy include: /opt/conda/envs/cuda118/lib/python3.9/site-packages/numpy/core/include
-- Found PythonInterp: /opt/conda/envs/cuda118/bin/python (found suitable version "3.9.16", minimum required is "3.6")
-- Found PythonLibs: /opt/conda/envs/cuda118/lib/libpython3.9.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /opt/conda/envs/cuda118/lib/python3.9/site-packages/pybind11/include (found version "2.10.4")
Using C++ compiler: /usr/bin/g++-11
GNU compiler detected. Using std=c++17.
CMake Warning at cmake/TaichiCXXFlags.cmake:68 (message):
It is detected that you are using gcc as the compiler. This is an
experimental feature. Consider adding -DCMAKE_CXX_COMPILER=clang argument
to CMake to switch to clang (or MSVC on Windows).
Call Stack (most recent call first):
CMakeLists.txt:133 (include)
-- Performing Test CXX_HAS_Wno_unqualified_std_cast_call
-- Performing Test CXX_HAS_Wno_unqualified_std_cast_call - Success
-- Performing Test CXX_HAS_Wno_unused_but_set_variable
-- Performing Test CXX_HAS_Wno_unused_but_set_variable - Success
Building for processor x86_64
Setting -march=nehalem for x86_64 processors
Using float32 (single) precision as real
CMake Warning at cmake/TaichiCore.cmake:51 (message):
Metal backend only supported on OS X. Setting TI_WITH_METAL to OFF.
Call Stack (most recent call first):
CMakeLists.txt:134 (include)
Building with GLFW
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including X11 support
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found LLVM 17.0.3
-- Using LLVMConfig.cmake in: /opt/llvm-17.0.3/build/lib/cmake/llvm
LLVM include dirs /opt/llvm-17.0.3/llvm/include;/opt/llvm-17.0.3/build/include
LLVM library dirs /opt/llvm-17.0.3/build/./lib
-- Found PythonInterp: /opt/conda/envs/cuda118/bin/python (found suitable version "3.9.16", minimum required is "3")
-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- Found Git: /usr/bin/git (found version "2.34.1")
-- SPIRV-Cross: Git hash: c77b09b5
PYTHON_LIBRARIES: /opt/conda/envs/cuda118/lib/libpython3.9.so
C++ Flags: -ffunction-sections -fdata-sections -DTI_ISE_NONE -std=c++17 -fsized-deallocation -Wno-class-memaccess -Wno-comment -Wno-sign-compare -Wall -Wno-ignored-attributes -Wno-nullability-completeness -Wno-unused-private-field -Wno-unneeded-internal-declaration -Wno-unqualified-std-cast-call -Wno-unused-but-set-variable -DTI_ARCH_x64 -march=nehalem -DTI_PASS_EXCEPTION_TO_PYTHON -DTI_INCLUDED -DTI_WITH_LLVM -DTI_WITH_CUDA -DTI_WITH_OPENGL -DTI_WITH_VULKAN
Build type: Release
CLANG_EXECUTABLE defined: /usr/bin/clang
/usr/bin/clang --version: 14.0.0
-- Compiling LLVM byte code file for arch x64
-- Compiling LLVM byte code file for arch cuda
Installing to /mnt/d/Software/AI/taichi/2310/wsl_cuda118/_skbuild/linux-x86_64-3.9/cmake-install/python/taichi/_lib/c_api
-- Configuring done (12.7s)
-- Generating done (6.1s)
-- Build files have been written to: /mnt/d/Software/AI/taichi/2310/wsl_cuda118/_skbuild/linux-x86_64-3.9/cmake-build
[27/655] Building CXX object taichi/rhi/CMakeFiles/ti_device_api.dir/arch.cpp.o
In file included from /mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/arch.cpp:2:
/mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/impl_support.h:72:27: warning: ‘nodiscard’ attribute can only be applied to functions or to class or enumeration types [-Wattributes]
72 | [[nodiscard]] RhiResult result;
| ^~~~~~
/mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/impl_support.h:73:19: warning: ‘nodiscard’ attribute can only be applied to functions or to class or enumeration types [-Wattributes]
73 | [[nodiscard]] T object;
| ^~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-unqualified-std-cast-call’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unneeded-internal-declaration’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-private-field’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-nullability-completeness’ may have been intended to silence earlier diagnostics
[29/655] Building CXX object taichi/rhi/vulkan/CMakeFiles/vulkan_rhi.dir/vulkan_loader.cpp.o
In file included from /mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/vulkan/vulkan_common.h:3,
from /mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/vulkan/vulkan_loader.cpp:1:
/mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/impl_support.h:72:27: warning: ‘nodiscard’ attribute can only be applied to functions or to class or enumeration types [-Wattributes]
72 | [[nodiscard]] RhiResult result;
| ^~~~~~
/mnt/d/Software/AI/taichi/2310/wsl_cuda118/taichi/rhi/impl_support.h:73:19: warning: ‘nodiscard’ attribute can only be applied to functions or to class or enumeration types [-Wattributes]
73 | [[nodiscard]] T object;
| ^~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-unqualified-std-cast-call’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unneeded-internal-declaration’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-private-field’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-nullability-completeness’ may have been intended to silence earlier diagnostics
[30/655] Building CXX object taichi/rhi/CMakeFiles/ti_device_api.dir/device.cpp.o
FAILED: taichi/rhi/CMakeFiles/ti_device_api.dir/device.cpp.o
...