Skip to content

Convert simple_embedding_test to run_binary_test - #5601

Merged
hcindyl merged 1 commit into
iree-org:mainfrom
hcindyl:simple_embedding_test
Apr 26, 2021
Merged

hcindyl merged 1 commit into
iree-org:mainfrom
hcindyl:simple_embedding_test

Conversation

@hcindyl

@hcindyl hcindyl commented Apr 24, 2021

Copy link
Copy Markdown
Contributor

Split the TEST_P into two tests so cmake can apply the right condition.
Supports both bazel test and ctest.

@google-cla google-cla Bot added the cla: yes label Apr 24, 2021
@hcindyl
hcindyl requested a review from ScottTodd April 24, 2021 01:09
@hcindyl
hcindyl marked this pull request as ready for review April 24, 2021 01:09
@hcindyl

hcindyl commented Apr 24, 2021

Copy link
Copy Markdown
Contributor Author

This is the follow up of #5524 and the last TODOs for #5481

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what's up with the Kokoro CI... it hasn't started running builds/tests yet?

endif()

iree_cc_test(
if(${IREE_TARGET_BACKEND_DYLIB-LLVM-AOT} AND ${IREE_HAL_DRIVER_DYLIB})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this condition is already checked by

if(NOT ${IREE_TARGET_BACKEND_DYLIB-LLVM-AOT} OR NOT ${IREE_TARGET_BACKEND_VULKAN-SPIRV}
   OR NOT ${IREE_HAL_DRIVER_DYLIB} OR NOT ${IREE_HAL_DRIVER_VULKAN})
  return()
endif()

above. I think it's fine to keep or omit these redundant checks. As we get further into multiarch/heterogeneous execution, we can change "simple_embedding" to just use a single backend, then add a separate sample showing those features.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Split the TEST_P into two tests.
Supports both bazel test and ctest.

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kokoro still isn't running builds/tests, but this LGTM.

@ScottTodd

Copy link
Copy Markdown
Member

Kokoro still isn't running builds/tests, but this LGTM.

Oooh, it finally started running :D so LGTM once build results come back.

@hcindyl
hcindyl merged commit a18c025 into iree-org:main Apr 26, 2021
@hcindyl
hcindyl deleted the simple_embedding_test branch April 26, 2021 21:27
simon-camp pushed a commit to simon-camp/iree that referenced this pull request Apr 29, 2021
Split the TEST_P into two tests.
Supports both bazel test and ctest.
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.

3 participants