Skip to content

Conversation

@ro-i
Copy link
Contributor

@ro-i ro-i commented Nov 14, 2025

(The tests in TestKmpStr.cpp are an automatically generated POC to make sure things work.)

@ro-i ro-i requested review from jhuber6, mjklemm and shiltian November 14, 2025 13:56
@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Nov 14, 2025
@ro-i ro-i force-pushed the users/ro-i/check-libomp-unit branch from 4c9e176 to c801cb4 Compare November 14, 2025 13:57
@ro-i ro-i force-pushed the users/ro-i/check-libomp-unit branch from 2f30670 to b12ff59 Compare December 16, 2025 15:47
@ro-i ro-i requested a review from Meinersbur December 16, 2025 16:08
Copy link
Contributor

@shiltian shiltian left a comment

Choose a reason for hiding this comment

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

LGTM in geenral.

set_target_properties(OpenMPUnitTests PROPERTIES FOLDER "OpenMP/Tests")

if(WIN32 OR STUBS_LIBRARY)
message(WARNING "OpenMP unittests disabled due to stub library or Windows")
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason this doesn't work on Windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. But since the CMake changes are already complicated enough to review and test as they are, I thought it might be best to get things working first and then add something like the Windows support in a follow-up

Co-authored-by: Shilei Tian <i@tianshilei.me>
Copy link
Contributor

@jplehr jplehr left a comment

Choose a reason for hiding this comment

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

+1 for adding unit tests here!

Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

openmp:libomp OpenMP host runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants