You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cmake build as described in the getting started doc fails to build without having Vulkan installed:
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
CMake Error at build_tools/third_party/dear_imgui/CMakeLists.txt:60 (message):
Vulkan library was not found
-- Configuring incomplete, errors occurred!
See also "/usr/src/git/iree/build/CMakeFiles/CMakeOutput.log".
See also "/usr/src/git/iree/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
For most targets, FindVulkan is not necessary. It should just be needed for the Vulkan GUI sample (and Dear ImGUI, which is only used by that sample). Here's how this is handled on the Bazel side:
Activity
ScottTodd commentedon May 5, 2020
For most targets, FindVulkan is not necessary. It should just be needed for the Vulkan GUI sample (and Dear ImGUI, which is only used by that sample). Here's how this is handled on the Bazel side:
Empty rule is created for
@vulkan_sdk//:sdk:https://github.com/google/iree/blob/f5c64fabdab88bf96aa4dfe7100a628304327ebe/build_tools/third_party/vulkan_sdk/repo.bzl#L15-L21
Target is marked
manualso wildcard builds won't attempt to build:https://github.com/google/iree/blob/f5c64fabdab88bf96aa4dfe7100a628304327ebe/iree/samples/vulkan/BUILD#L34-L47
As a simple fix, we can omit those targets in CMake if the FindVulkan check fails.
ScottTodd commentedon May 5, 2020
Removed
spirv_toolsin #1792. I'm curious to see if the core parts of IREE (as described in the getting started docs) build with just python2.If it's easy enough for you to iterate on builds, could you try removing
${IREE_BUILD_COMPILER}from https://github.com/google/iree/blob/d0d81a26221e3c56e2b999f98238f60db7f85b73/CMakeLists.txt#L107-L116to confirm if there's some other dependency in there?
Here's some of LLVM's use: https://github.com/llvm/llvm-project/search?q=pythoninterp&unscoped_q=pythoninterp
(Installing python3 is good, but keeping the docs simple is better, if possible :D)
phoenix-meadowlark commentedon May 5, 2020
I'll look into it after I confirm that I have a working CMake build after #1794!
phoenix-meadowlark commentedon May 6, 2020
Removing
${IREE_BUILD_COMPILER}allows the getting started build to successfully complete without python3.ScottTodd commentedon May 6, 2020
Oh, this comment thread should have been on #1779 >_>