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

Prevent host Vulkan SDK blocking cross-compilation #7609

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

PENGUINLIONG
Copy link
Contributor

The moved code is blocking cross-compilation with NDK. When the host system has Vulkan SDK installed while Vulkan support for cross-compilation is opted out, the current build script still attempts to include those directories that could never be found:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
_glsl_std
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
_libspirv
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
_spirv
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc
   used as include directory in directory C:/Users/PENGUINLIONG/Repositories/tvm/apps/cpp_rpc

CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "tvm_objs":

    "_libspirv-NOTFOUND"


CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of
  "tvm_runtime_objs":

    "_libspirv-NOTFOUND"



CMake Error in apps/cpp_rpc/CMakeLists.txt:
  Found relative path while evaluating include directories of "tvm_rpc":

    "_libspirv-NOTFOUND"



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
ninja: error: loading 'build.ninja': ϵͳҲ

cmake/modules/Vulkan.cmake Outdated Show resolved Hide resolved
@tqchen tqchen merged commit 12c3b3d into apache:main Mar 9, 2021
@PENGUINLIONG PENGUINLIONG deleted the patch-1 branch March 10, 2021 01:57
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
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

Successfully merging this pull request may close these issues.

2 participants