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
afbfaf0a
Commit
afbfaf0a
authored
6 years ago
by
Richard Berger
Browse files
Options
Downloads
Patches
Plain Diff
Change LAMMPS_SIZE_LIMIT to LAMMPS_SIZES and use lower case values
parent
8634301b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/CMakeLists.txt
+14
-12
14 additions, 12 deletions
cmake/CMakeLists.txt
with
14 additions
and
12 deletions
cmake/CMakeLists.txt
+
14
−
12
View file @
afbfaf0a
...
@@ -133,10 +133,11 @@ else()
...
@@ -133,10 +133,11 @@ else()
list
(
APPEND LAMMPS_LINK_LIBS mpi_stubs
)
list
(
APPEND LAMMPS_LINK_LIBS mpi_stubs
)
endif
()
endif
()
set
(
LAMMPS_SIZE_LIMIT
"LAMMPS_SMALLBIG"
CACHE STRING
"Lammps size limit"
)
set
(
LAMMPS_SIZES
"smallbig"
CACHE STRING
"LAMMPS size limit"
)
set_property
(
CACHE LAMMPS_SIZE_LIMIT PROPERTY STRINGS LAMMPS_SMALLBIG LAMMPS_BIGBIG LAMMPS_SMALLSMALL
)
set_property
(
CACHE LAMMPS_SIZES PROPERTY STRINGS smallbig bigbig smallsmall
)
add_definitions
(
-D
${
LAMMPS_SIZE_LIMIT
}
)
string
(
TOUPPER
${
LAMMPS_SIZES
}
LAMMPS_SIZES_DEFINE
)
set
(
LAMMPS_API_DEFINES
"
${
LAMMPS_API_DEFINES
}
-D
${
LAMMPS_SIZE_LIMIT
}
"
)
add_definitions
(
-DLAMMPS_
${
LAMMPS_SIZES_DEFINE
}
)
set
(
LAMMPS_API_DEFINES
"
${
LAMMPS_API_DEFINES
}
-DLAMMPS_
${
LAMMPS_SIZES_DEFINE
}
"
)
# posix_memalign is not available on Windows
# posix_memalign is not available on Windows
if
(
NOT
${
CMAKE_SYSTEM_NAME
}
STREQUAL
"Windows"
)
if
(
NOT
${
CMAKE_SYSTEM_NAME
}
STREQUAL
"Windows"
)
...
@@ -218,10 +219,10 @@ if(PKG_KSPACE)
...
@@ -218,10 +219,10 @@ if(PKG_KSPACE)
if
(
${
FFTW
}
_FOUND
)
if
(
${
FFTW
}
_FOUND
)
set
(
FFT
"
${
FFTW
}
"
CACHE STRING
"FFT library for KSPACE package"
)
set
(
FFT
"
${
FFTW
}
"
CACHE STRING
"FFT library for KSPACE package"
)
else
()
else
()
set
(
FFT
"KISS
FFT
"
CACHE STRING
"FFT library for KSPACE package"
)
set
(
FFT
"KISS"
CACHE STRING
"FFT library for KSPACE package"
)
endif
()
endif
()
set_property
(
CACHE FFT PROPERTY STRINGS KISS
FFT
${
FFTW
}
MKL
)
set_property
(
CACHE FFT PROPERTY STRINGS KISS
${
FFTW
}
MKL
)
if
(
NOT FFT STREQUAL
"KISS
FFT
"
)
if
(
NOT FFT STREQUAL
"KISS"
)
find_package
(
${
FFT
}
REQUIRED
)
find_package
(
${
FFT
}
REQUIRED
)
if
(
NOT FFT STREQUAL
"FFTW3F"
)
if
(
NOT FFT STREQUAL
"FFTW3F"
)
add_definitions
(
-DFFT_FFTW
)
add_definitions
(
-DFFT_FFTW
)
...
@@ -231,12 +232,13 @@ if(PKG_KSPACE)
...
@@ -231,12 +232,13 @@ if(PKG_KSPACE)
include_directories
(
${${
FFT
}
_INCLUDE_DIRS
}
)
include_directories
(
${${
FFT
}
_INCLUDE_DIRS
}
)
list
(
APPEND LAMMPS_LINK_LIBS
${${
FFT
}
_LIBRARIES
}
)
list
(
APPEND LAMMPS_LINK_LIBS
${${
FFT
}
_LIBRARIES
}
)
else
()
else
()
add_definitions
(
-DFFT_KISS
FFT
)
add_definitions
(
-DFFT_KISS
)
endif
()
endif
()
set
(
PACK_OPTIMIZATION
"PACK_ARRAY"
CACHE STRING
"Optimization for FFT"
)
set
(
FFT_PACK
"array"
CACHE STRING
"Optimization for FFT"
)
set_property
(
CACHE PACK_OPTIMIZATION PROPERTY STRINGS PACK_ARRAY PACK_POINTER PACK_MEMCPY
)
set_property
(
CACHE PACK_OPTIMIZATION PROPERTY STRINGS array pointer memcpy
)
if
(
NOT PACK_OPTIMIZATION STREQUAL
"PACK_ARRAY"
)
if
(
NOT FFT_PACK STREQUAL
"array"
)
add_definitions
(
-D
${
PACK_OPTIMIZATION
}
)
string
(
TOUPPER
${
FFT_PACK
}
FFT_PACK_DEFINE
)
add_definitions
(
-DFFT_PACK_
${
FFT_PACK_DEFINE
}
)
endif
()
endif
()
endif
()
endif
()
...
...
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