Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
9e9cfe58
Unverified
Commit
9e9cfe58
authored
7 years ago
by
Steve Plimpton
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #754 from rbberger/cmake_kokkos_bugfix
CMake bugfixes for KOKKOS builds
parents
85ff0c1e
b9184ef4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/CMakeLists.txt
+13
-0
13 additions, 0 deletions
cmake/CMakeLists.txt
cmake/Modules/StyleHeaderUtils.cmake
+22
-0
22 additions, 0 deletions
cmake/Modules/StyleHeaderUtils.cmake
with
35 additions
and
0 deletions
cmake/CMakeLists.txt
+
13
−
0
View file @
9e9cfe58
...
@@ -480,6 +480,8 @@ if(ENABLE_KOKKOS)
...
@@ -480,6 +480,8 @@ if(ENABLE_KOKKOS)
${
KOKKOS_PKG_SOURCES_DIR
}
/neigh_list_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/neigh_list_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/neigh_bond_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/neigh_bond_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/fix_nh_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/fix_nh_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/nbin_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/npair_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/domain_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/domain_kokkos.cpp
${
KOKKOS_PKG_SOURCES_DIR
}
/modify_kokkos.cpp
)
${
KOKKOS_PKG_SOURCES_DIR
}
/modify_kokkos.cpp
)
set_property
(
GLOBAL PROPERTY
"KOKKOS_PKG_SOURCES"
"
${
KOKKOS_PKG_SOURCES
}
"
)
set_property
(
GLOBAL PROPERTY
"KOKKOS_PKG_SOURCES"
"
${
KOKKOS_PKG_SOURCES
}
"
)
...
@@ -487,6 +489,17 @@ if(ENABLE_KOKKOS)
...
@@ -487,6 +489,17 @@ if(ENABLE_KOKKOS)
# detects styles which have KOKKOS version
# detects styles which have KOKKOS version
RegisterStylesExt
(
${
KOKKOS_PKG_SOURCES_DIR
}
kokkos KOKKOS_PKG_SOURCES
)
RegisterStylesExt
(
${
KOKKOS_PKG_SOURCES_DIR
}
kokkos KOKKOS_PKG_SOURCES
)
# register kokkos-only styles
RegisterNBinStyle
(
${
KOKKOS_PKG_SOURCES_DIR
}
/nbin_kokkos.h
)
RegisterNPairStyle
(
${
KOKKOS_PKG_SOURCES_DIR
}
/npair_kokkos.h
)
if
(
ENABLE_USER-DPD
)
get_property
(
KOKKOS_PKG_SOURCES GLOBAL PROPERTY KOKKOS_PKG_SOURCES
)
list
(
APPEND KOKKOS_PKG_SOURCES
${
KOKKOS_PKG_SOURCES_DIR
}
/npair_ssa_kokkos.cpp
)
RegisterNPairStyle
(
${
KOKKOS_PKG_SOURCES_DIR
}
/npair_ssa_kokkos.h
)
set_property
(
GLOBAL PROPERTY
"KOKKOS_PKG_SOURCES"
"
${
KOKKOS_PKG_SOURCES
}
"
)
endif
()
get_property
(
KOKKOS_PKG_SOURCES GLOBAL PROPERTY KOKKOS_PKG_SOURCES
)
get_property
(
KOKKOS_PKG_SOURCES GLOBAL PROPERTY KOKKOS_PKG_SOURCES
)
list
(
APPEND LIB_SOURCES
${
KOKKOS_PKG_SOURCES
}
)
list
(
APPEND LIB_SOURCES
${
KOKKOS_PKG_SOURCES
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/Modules/StyleHeaderUtils.cmake
+
22
−
0
View file @
9e9cfe58
...
@@ -11,6 +11,12 @@ function(FindStyleHeaders path style_class file_pattern headers)
...
@@ -11,6 +11,12 @@ function(FindStyleHeaders path style_class file_pattern headers)
set_property
(
GLOBAL PROPERTY
${
headers
}
"
${
hlist
}
"
)
set_property
(
GLOBAL PROPERTY
${
headers
}
"
${
hlist
}
"
)
endfunction
(
FindStyleHeaders
)
endfunction
(
FindStyleHeaders
)
function
(
AddStyleHeader path headers
)
get_property
(
hlist GLOBAL PROPERTY
${
headers
}
)
list
(
APPEND hlist
${
path
}
)
set_property
(
GLOBAL PROPERTY
${
headers
}
"
${
hlist
}
"
)
endfunction
(
AddStyleHeader
)
function
(
FindStyleHeadersExt path style_class extension headers sources
)
function
(
FindStyleHeadersExt path style_class extension headers sources
)
get_property
(
hlist GLOBAL PROPERTY
${
headers
}
)
get_property
(
hlist GLOBAL PROPERTY
${
headers
}
)
get_property
(
slist GLOBAL PROPERTY
${
sources
}
)
get_property
(
slist GLOBAL PROPERTY
${
sources
}
)
...
@@ -62,6 +68,22 @@ function(GenerateStyleHeader path property style)
...
@@ -62,6 +68,22 @@ function(GenerateStyleHeader path property style)
CreateStyleHeader
(
"
${
path
}
"
"style_
${
style
}
.h"
${
files
}
)
CreateStyleHeader
(
"
${
path
}
"
"style_
${
style
}
.h"
${
files
}
)
endfunction
(
GenerateStyleHeader
)
endfunction
(
GenerateStyleHeader
)
function
(
RegisterNBinStyles search_path
)
FindStyleHeaders
(
${
search_path
}
NBIN_CLASS nbin_ NBIN
)
# nbin ) # neighbor
endfunction
(
RegisterNBinStyles
)
function
(
RegisterNPairStyles search_path
)
FindStyleHeaders
(
${
search_path
}
NPAIR_CLASS npair_ NPAIR
)
# npair ) # neighbor
endfunction
(
RegisterNPairStyles
)
function
(
RegisterNBinStyle path
)
AddStyleHeader
(
${
path
}
NBIN
)
endfunction
(
RegisterNBinStyle
)
function
(
RegisterNPairStyle path
)
AddStyleHeader
(
${
path
}
NPAIR
)
endfunction
(
RegisterNPairStyle
)
function
(
RegisterStyles search_path
)
function
(
RegisterStyles search_path
)
FindStyleHeaders
(
${
search_path
}
ANGLE_CLASS angle_ ANGLE
)
# angle ) # force
FindStyleHeaders
(
${
search_path
}
ANGLE_CLASS angle_ ANGLE
)
# angle ) # force
FindStyleHeaders
(
${
search_path
}
ATOM_CLASS atom_vec_ ATOM_VEC
)
# atom ) # atom atom_vec_hybrid
FindStyleHeaders
(
${
search_path
}
ATOM_CLASS atom_vec_ ATOM_VEC
)
# atom ) # atom atom_vec_hybrid
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment