Skip to content

Convert lit tests in test/e2e/vulkan_specific to check tests. - #1855

Closed
ScottTodd wants to merge 3 commits into
iree-org:masterfrom
ScottTodd:vulkan-check-test
Closed

ScottTodd wants to merge 3 commits into
iree-org:masterfrom
ScottTodd:vulkan-check-test

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

reduce.mlir fails with #1743 under SwiftShader due to a SwiftShader bug where we can't create a Vulkan driver twice within the same binary. The check tests don't exhibit this bug (since they reuse a single driver/device for each test case).

@ScottTodd

Copy link
Copy Markdown
Member Author

@GMNGeoffrey CMake error:

CMake Error at build_tools/cmake/iree_check_test.cmake:72 (add_custom_target):
  add_custom_target cannot create target
  "check_vulkan-spirv_vulkan_reduce.mlir_module" because another target with
  the same name already exists.  The existing target is a custom target
  created in source directory
  "/tmpfs/src/github/iree/iree/test/e2e/vulkan_specific".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  build_tools/cmake/iree_check_test.cmake:142 (iree_check_test)
  iree/test/e2e/xla_ops/CMakeLists.txt:29 (iree_check_single_backend_test_suite)

how do you want to resolve that? (reduce.mlir files in two different directories)

@ScottTodd

Copy link
Copy Markdown
Member Author

@GMNGeoffrey CMake error:

CMake Error at build_tools/cmake/iree_check_test.cmake:72 (add_custom_target):
  add_custom_target cannot create target
  "check_vulkan-spirv_vulkan_reduce.mlir_module" because another target with
  the same name already exists.  The existing target is a custom target
  created in source directory
  "/tmpfs/src/github/iree/iree/test/e2e/vulkan_specific".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  build_tools/cmake/iree_check_test.cmake:142 (iree_check_test)
  iree/test/e2e/xla_ops/CMakeLists.txt:29 (iree_check_single_backend_test_suite)

how do you want to resolve that? (reduce.mlir files in two different directories)

Renamed one for now (xla_ops keeps its name since that feeds the op coverage table). LMK if you have other suggestions.

@GMNGeoffrey

Copy link
Copy Markdown
Member

@GMNGeoffrey CMake error:

CMake Error at build_tools/cmake/iree_check_test.cmake:72 (add_custom_target):
  add_custom_target cannot create target
  "check_vulkan-spirv_vulkan_reduce.mlir_module" because another target with
  the same name already exists.  The existing target is a custom target
  created in source directory
  "/tmpfs/src/github/iree/iree/test/e2e/vulkan_specific".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  build_tools/cmake/iree_check_test.cmake:142 (iree_check_test)
  iree/test/e2e/xla_ops/CMakeLists.txt:29 (iree_check_single_backend_test_suite)

how do you want to resolve that? (reduce.mlir files in two different directories)

Renamed one for now (xla_ops keeps its name since that feeds the op coverage table). LMK if you have other suggestions.

Oh that's a bug in the cmake implementation of check_test. It should be prefixing target names with the full package path. Good catch!

Comment thread iree/test/e2e/xla_ops/CMakeLists.txt Resolved
@copybara-service copybara-service Bot closed this in f488427 May 8, 2020
@ScottTodd
ScottTodd deleted the vulkan-check-test branch May 8, 2020 22:01
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.

4 participants