Fix Windows build support for xpupti tests and #1394
Open
tsocha wants to merge 1 commit into
Open
Conversation
* Refactor test/xpupti/CMakeLists.txt to handle Windows and
multi-config generators (VS, Ninja Multi-Config):
- Force Ninja as the inner ExternalProject generator on Windows
and propagate $<CONFIG> via CONFIGURE_COMMAND for multi-config
- Use WINDOWS_EXPORT_ALL_SYMBOLS and /FORCE:UNRESOLVED so the
shared test library can build against ComputeOnXpu defined in
the compute executable
- Pass LINK_LIBRARY_NAME/LINK_LIBRARY_DIR instead of a hardcoded
lib<name>.so path; inner project resolves via find_library with
config-aware PATH_SUFFIXES
- Forward SYCL lib path to the inner linker on Windows
- Skip -Wl,--export-dynamic on Windows in compute/CMakeLists.txt
* Add XpuptiActivityHandlersTest executable (unit test that does
not require the SYCL compute ExternalProject); rename make_test
to make_sycl_test to reflect the remaining SYCL-based tests.
* Fix XPUPTI_BUILD_FLAG so -DHAS_XPUPTI is visible in both the
current and parent scopes (was only set in PARENT_SCOPE).
* Reorder id/linked/metadata assignments in
XpuptiActivityProfilerSession::handleRuntimeKernelMemcpyMemsetActivities
and inline the linkedActivity lookup — no behavior change.
* Include src/ActivityBuffers.h in XpuptiTestUtilities.cpp and
hoist iterator declarations out of the for-init to satisfy MSVC.
Author
|
@gujinghui please review it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's a part of #1335 1/3
Refactor test/xpupti/CMakeLists.txt to handle Windows and multi-config generators (VS, Ninja Multi-Config):
Rename make_test to make_sycl_test to reflect SYCL-based tests.
Fix XPUPTI_BUILD_FLAG so -DHAS_XPUPTI is visible in both the current and parent scopes (was only set in PARENT_SCOPE).
Reorder id/linked/metadata assignments in XpuptiActivityProfilerSession::handleRuntimeKernelMemcpyMemsetActivities and inline the linkedActivity lookup — no behavior change.
Include src/ActivityBuffers.h in XpuptiTestUtilities.cpp and hoist iterator declarations out of the for-init to satisfy MSVC.