Update Kokkos library in LAMMPS to v4.5.0
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# This is a tutorial, not a test, so we don't ask CTest to run it.
|
||||
KOKKOS_ADD_EXECUTABLE(
|
||||
tutorial_02_simple_reduce
|
||||
SOURCES simple_reduce.cpp
|
||||
)
|
||||
kokkos_add_executable(launch_bounds_reduce SOURCES launch_bounds_reduce.cpp)
|
||||
|
||||
@ -38,8 +38,9 @@ struct collision {
|
||||
int hash(int q) const {
|
||||
// A simple hash by Justin Sobel
|
||||
// Thanks to Arash Partow (partow.net)
|
||||
char* fourchars = (char*)&q;
|
||||
int hash = 1315423911;
|
||||
char* fourchars =
|
||||
(char*)&q; // NOLINT(cppcoreguidelines-pro-type-cstyle-cast)
|
||||
int hash = 1315423911;
|
||||
for (int i = 0; i < 4; fourchars++, i++) {
|
||||
hash ^= ((hash << 5) + *fourchars + (hash >> 2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user