-
Notifications
You must be signed in to change notification settings - Fork 75
Makes Windows build fail earlier with more descriptive error message #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| *~ | ||
| *.so | ||
| /src/tools/simple-kernel-timer/kp_reader | ||
| # Expected build dir | ||
| /build | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR) | |
|
|
||
| project(KokkosTools CXX) | ||
|
|
||
| # Users cannot use Kokkos tools on windows, we want to test things on windows/msvc however | ||
| if(WIN32 AND NOT DEFINED KOKKOS_TOOLS_TEST_WINDOWS) | ||
| message(FATAL_ERROR "Kokkos tools is not supported on Windows, please attempt to profile on expected hardware") | ||
| endif() | ||
|
|
||
|
Comment on lines
+5
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it even build on windows?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, The libs all build to completion, the At the moment you'd have to read the documentation to figure out that it's not supported* , which is fine but lots of people don't so it's easier to just * The user has to find out how to use it, find out that requires
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe I don't understand ... but isn't
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes they are the same concept and solve the same problems but the syntax and lookup changes between the two.
No, In short we need some (minimal) code changes to make the Full disclosure: I work for a consultancy which has customers that like Windows, I'm not just a Linux hater :)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think the tools don't really have windows users on windows machines. Do you have seen them be used on WSL?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where would that variable be defined?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I remember reading (I don't know if it was Kokkos docs or other docs) not to profile in non-target environments so I think it's moot. I see no reason you can't profile a Kokkos executable built in WSL from WSL though.
I agree, (with no intention to be rude) that is the point of the ticket. :)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I has to be given in the CMake invocation. i.e.
I wanted something unique:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest to add the option in a pull request that would actually add some
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did think about that but it makes all the other checks for windows moot I think it's fine here for now (does no harm and isn't particularly invasive) |
||
| if(NOT DEFINED CMAKE_CXX_STANDARD) | ||
| set(CMAKE_CXX_STANDARD 17) | ||
| endif() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.