Skip to content

windows build ok but run failed with TI_ERROR_ARGUMENT_NULL #62

@zchrissirhcz

Description

@zchrissirhcz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions