-
Notifications
You must be signed in to change notification settings - Fork 2
Add Kokkos library to repository #256
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
Open
AndreySorokin7
wants to merge
35
commits into
main
Choose a base branch
from
AndreySorokin7/add_parall_kokkos
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a80dc95
fix
e8755f7
Merge branch 'main' into AndreySorokin7/add_parall_kokkos
AndreySorokin7 9bb58e3
Update CMakeLists.txt
AndreySorokin7 5e9b94d
Fix formatting in graph.hpp
AndreySorokin7 57a9976
Remove commented Kokkos include directory
AndreySorokin7 e8bf78d
Replace count() with contains() for maps
AndreySorokin7 5f33256
Update backends.hpp
AndreySorokin7 bb56e13
Update backends.hpp
AndreySorokin7 461d273
Update backends.hpp
AndreySorokin7 c8cfe03
Refactor backend implementation in backends.hpp
AndreySorokin7 c5b29c9
fix
7f33859
fix
9fb2e90
fix
4794d80
fix
9b4df61
fix
0c78780
fix
18cddb4
fix
2027a3a
fix
61f356d
fix
a717744
fix
d2e8b11
fix
0869a17
fix
d9d6642
fix
0432942
fix
071438e
fix
2f8766f
fix
f4218fd
fix
4dbb9df
fix
5bfbd5e
fix
0145aeb
fix
6f404d6
fix
2026ace
fix
7d0b2d8
Merge branch 'main' into AndreySorokin7/add_parall_kokkos
AndreySorokin7 baacd77
Update build.cpp
AndreySorokin7 e1093e0
Replace name_to_layer_ptr with name_to_layer
AndreySorokin7 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
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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| include(ExternalProject) | ||
|
|
||
| set(KOKKOS_BUILD_DIR "${CMAKE_BINARY_DIR}/3rdparty/kokkos_build") | ||
| set(KOKKOS_INSTALL_DIR "${CMAKE_BINARY_DIR}/3rdparty/kokkos_install") | ||
|
|
||
| ExternalProject_Add( | ||
| kokkos_external | ||
| SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/kokkos" | ||
| BINARY_DIR "${KOKKOS_BUILD_DIR}" | ||
| INSTALL_DIR "${KOKKOS_INSTALL_DIR}" | ||
|
|
||
| CMAKE_ARGS | ||
| -G "${CMAKE_GENERATOR}" | ||
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
| -DCMAKE_INSTALL_PREFIX=${KOKKOS_INSTALL_DIR} | ||
|
|
||
| -DKokkos_ENABLE_SERIAL=ON | ||
| -DKokkos_ARCH_NATIVE=OFF | ||
| -DKokkos_ENABLE_OPENMP=OFF | ||
aobolensk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| -DKokkos_ENABLE_THREADS=ON | ||
| -DKokkos_ENABLE_CUDA=OFF | ||
| -DKokkos_ENABLE_HIP=OFF | ||
| -DKokkos_ENABLE_TESTS=OFF | ||
| -DKokkos_ENABLE_EXAMPLES=OFF | ||
|
|
||
| -DKokkos_ENABLE_AGGRESSIVE_VECTORIZATION=ON | ||
| -DKokkos_ENABLE_LIBDL=OFF | ||
|
|
||
| BUILD_COMMAND ${CMAKE_COMMAND} --build "${KOKKOS_BUILD_DIR}" --config ${CMAKE_BUILD_TYPE} -j${NPROC} | ||
|
|
||
| INSTALL_COMMAND ${CMAKE_COMMAND} --install "${KOKKOS_BUILD_DIR}" --config ${CMAKE_BUILD_TYPE} | ||
|
|
||
| BUILD_ALWAYS OFF | ||
| LOG_CONFIGURE ON | ||
| LOG_BUILD ON | ||
| LOG_INSTALL ON | ||
| ) | ||
|
|
||
| set(Kokkos_DIR "${KOKKOS_INSTALL_DIR}/lib/cmake/Kokkos" CACHE PATH "Path to Kokkos CMake config") | ||
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
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
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| file(GLOB_RECURSE graph_src *.cpp) | ||
| add_library(graph_lib STATIC "${GRAPH_HEADERS}" "${graph_src}") | ||
| target_link_libraries(graph_lib PUBLIC TBB_unified) | ||
| add_dependencies(graph_lib kokkos_external) |
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| file(GLOB_RECURSE graphT_src *.cpp) | ||
| add_library(graphT_lib STATIC "${GRAPHT_HEADERS}" "${graphT_src}") | ||
| target_link_libraries(graphT_lib PUBLIC TBB_unified) | ||
| add_dependencies(graphT_lib kokkos_external) |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.