Skip to content
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

windows build ok but run failed with TI_ERROR_ARGUMENT_NULL #62

Open
zchrissirhcz opened this issue Nov 8, 2022 · 1 comment
Open

Comments

@zchrissirhcz
Copy link

Hi maintainers,

This time I build it on windows. Still use same customized configs:

  • turn off TI_WITH_LLVM
  • turn on TI_WITH_VULKAN
  • turn on TI_WITH_C_API

it build ok for both taichi and taichi-aot-demos with Visual Studio 2022, but running with error TI_ERROR_ARGUMENT_NULL, as shown in the screenshot:

image

0. Machine Environment

  • Visual Studio 2022 17.3.5
  • cmake version 3.24.3
  • vulkan SDK 1.3.204.1
  • vulkaninfo result: vkinfo.txt
  • GPU device: Intel Iris Xe Graphics
    image

1. how I build taichi

taichi repo with latest commit

* 7a5dac064 2022-11-08 | [lang] MatrixType bug fix: Allow builtin any() and all() (#6533) (HEAD -> master, origin/master, origin/HEAD) [Yi Xu]

build script is d:/github/taichi/build.cmd with contents:

@echo off

set TAICHI_CMAKE_ARGS=-DCLANG_EXECUTABLE=D:/soft/taichi-clang-10.0.0/bin/clang++.exe -DLLVM_AS_EXECUTABLE="D:/soft/taichi-llvm-10.0.0-msvc2022/bin/llvm-as.exe" -DTI_WITH_VULKAN=ON -DTI_WITH_C_API=ON -DTI_WITH_LLVM=OFF

python setup.py install > log.txt 2>&1

The build log is:

taichi-build-log-windows-vs2022.txt

how I build taichi-aot-demo

taichi-aot-demo with latest commit

* 9994029 2022-11-08 | Fixed renderer initialization (#53) (HEAD -> master, origin/master, origin/HEAD) [PENGUINLIONG]

build script is d:/github/taichi-aot-demo/build.cmd with contents:

@echo off

set TAICHI_C_API_INSTALL_DIR=D:/github/taichi/_skbuild/win-amd64-3.9/cmake-install/c_api
cmake -S . -B build > configure-log.txt

The cmake configure log file is:
taichi-aot-demo-configure-log.txt

@zchrissirhcz
Copy link
Author

I cannot figure out what is wrong from the call stack: (E2_mpp88_headless):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant