-
Notifications
You must be signed in to change notification settings - Fork 75
Updates for ease of building #289
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
Closed
Closed
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d9f51d1
Fixes to not fail to build .dlls silently on windows
OlekRaymond 0d7b874
Update nvtx-connector to link to newer nvtx3
OlekRaymond f3504cc
Added better error messages to CMakeLists.txt
OlekRaymond ead2414
Revert "Update nvtx-connector to link to newer nvtx3"
OlekRaymond 639dd30
Addresses review comments
OlekRaymond 19a2507
Merge branch 'kokkos:develop' into cmake-changes
OlekRaymond File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ if(NOT DEFINED CMAKE_CXX_STANDARD) | |
| set(CMAKE_CXX_STANDARD 17) | ||
| endif() | ||
| if(CMAKE_CXX_STANDARD LESS 17) | ||
| message(FATAL_ERROR "KokkosTools requires C++17") | ||
| message(FATAL_ERROR "KokkosTools requires C++17 or higher") | ||
| endif() | ||
|
|
||
|
|
||
|
|
@@ -25,20 +25,19 @@ endif() | |
| list(INSERT CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR}/cmake) | ||
|
|
||
| message(STATUS) | ||
| message(STATUS Configuring Kokkos-Tools) | ||
| message(STATUS "Configuring Kokkos-Tools") | ||
| message(STATUS) | ||
|
|
||
| # Common settings | ||
| set(BUILD_SHARED_LIBS "Build shared libraries" ON) | ||
| if(WIN32) | ||
| set(BUILD_SHARED_LIBS OFF) # We need to add __declspec(dllexport/dllimport) for Windows DLLs | ||
| option(BUILD_SHARED_LIBS "Build shared libraries" ON) | ||
| # We need to add __declspec(dllexport/dllimport) for Windows DLLs | ||
| if(WIN32 AND BUILD_SHARED_LIBS) | ||
| set(BUILD_SHARED_LIBS OFF) | ||
| message(STATUS "Windows building of .dlls is not yet supported") | ||
|
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 think we should error out |
||
| endif() | ||
|
|
||
| # Tools settings | ||
| option(KokkosTools_ENABLE_SINGLE "Build single library interfacing all profilers and dispatching at runtime" OFF) | ||
| if(WIN32) | ||
| set(KokkosTools_ENABLE_SINGLE ON) | ||
| endif() | ||
| option(KokkosTools_ENABLE_SINGLE "Build single library interfacing all profilers and dispatching at runtime" ${WIN32}) | ||
|
|
||
| option(KokkosTools_ENABLE_PAPI "Enable PAPI support" OFF) | ||
| option(KokkosTools_ENABLE_MPI "Enable MPI support" OFF) | ||
|
|
@@ -119,11 +118,9 @@ endif() | |
| # make Kokkos profiling interface available for native profilers | ||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}/profiling/all) | ||
|
|
||
| set(COMMON_HEADERS_PATH ${CMAKE_CURRENT_BINARY_DIR}/common) | ||
| include_directories(${COMMON_HEADERS_PATH}) | ||
|
|
||
|
Comment on lines
-109
to
-111
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. why delete these? |
||
| # Allow all tools to include any file. | ||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}/common) | ||
| set(COMMON_HEADERS_PATH ${CMAKE_CURRENT_BINARY_DIR}/common) # Used in profilers/all | ||
|
|
||
| set(SINGLELIB_PROFILERS "" CACHE STRING "" FORCE) | ||
|
|
||
|
|
@@ -139,7 +136,7 @@ if(WIN32) | |
| endif() | ||
|
|
||
| if(APPLE) | ||
| message(STATUS "Apple OSX target detected.") | ||
| message(STATUS "Apple OSX target detected - skipping Linux-only tools.") | ||
| endif() | ||
|
|
||
| # Utilities | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really an option. The tools will only work as shared libs.