Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
8bf8a722
Commit
8bf8a722
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding missing files
parent
68be6590
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#793
failed
6 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+154
-0
154 additions, 0 deletions
CMakeLists.txt
configure
+7
-4
7 additions, 4 deletions
configure
with
161 additions
and
4 deletions
CMakeLists.txt
0 → 100644
+
154
−
0
View file @
8bf8a722
cmake_minimum_required
(
VERSION 3.8 FATAL_ERROR
)
project
(
openfpm_pdata LANGUAGES C CXX
)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_CURRENT_LIST_DIR
}
/cmake_modules/
)
set
(
BOOST_INCLUDE
${
Boost_INCLUDE_DIR
}
CACHE PATH
"Include directory for BOOST"
)
set
(
PETSC_ROOT CACHE PATH
"If compiling with linear algebra indicate the PETSC root directory"
)
set
(
PARMETIS_ROOT CACHE PATH
"Parmetis root directory"
)
set
(
METIS_ROOT CACHE PATH
"Metis root directory"
)
set
(
LIBHILBERT_ROOT CACHE PATH
"LibHilbert root path"
)
set
(
HDF5_ROOT CACHE PATH
"HDF5 root path"
)
set
(
EIGEN3_ROOT CACHE PATH
"Eigen3 include path"
)
set
(
LIBHILBERT_ROOT CACHE PATH
"LibHilbert root path"
)
set
(
SUITESPARSE_ROOT CACHE PATH
"The suitesparse root path"
)
set
(
TINYOBJLOADER_ROOT CACHE PATH
"TinyObjLoader library path"
)
set
(
SE_CLASS1 CACHE BOOL
"Activate compilation with SE_CLASS1"
)
set
(
SE_CLASS2 CACHE BOOL
"Activate compilation with SE_CLASS2"
)
set
(
SE_CLASS3 CACHE BOOL
"Activate compilation with SE_CLASS3"
)
set
(
PROFILE_WITH_SCOREP CACHE BOOL
"Enable profiling with scorep"
)
set
(
ENV{PETSC_DIR}
${
PETSC_ROOT
}
)
set
(
ENV{HDF5_ROOT}
${
HDF5_ROOT
}
)
set
(
ENV{EIGEN3_ROOT}
${
EIGEN3_ROOT
}
)
set
(
METIS_DIR
${
METIS_ROOT
}
)
set
(
PARMETIS_DIR
${
PARMETIS_ROOT
}
)
set
(
OPENBLAS_ROOT CACHE PATH
"Root path for blas library"
)
if
(
OPENBLAS_ROOT
)
set
(
OPENBLAS_DIR
"{OPENBLAS_ROOT}"
)
set
(
LAPACK_DIR
"{OPENBLAS_ROOT}"
)
endif
()
set
(
ENV{PATH}
"$ENV{PATH}:
${
HDF5_ROOT
}
/bin"
)
set
(
HDF5_PREFER_PARALLEL TRUE
)
if
(
ENABLE_GPU
)
enable_language
(
CUDA
)
find_package
(
CUDA
)
endif
()
find_package
(
Boost 1.52.0 REQUIRED unit_test_framework iostreams program_options
)
find_package
(
MPI REQUIRED
)
find_package
(
PETSc
)
find_package
(
HDF5 REQUIRED
)
find_package
(
Eigen3
)
find_package
(
LibHilbert REQUIRED
)
find_package
(
Metis REQUIRED
)
find_package
(
ParMetis REQUIRED
)
find_package
(
TinyObjLoader
)
find_package
(
BLAS
)
find_package
(
LAPACK
)
if
(
PROFILE_WITH_SCOREP
)
set
(
CMAKE_CXX_COMPILER_LAUNCHER
"scorep"
)
set
(
CMAKE_CC_COMPILER_LAUNCHER
"scorep"
)
set
(
CMAKE_CUDA_COMPILER_LAUNCHER
"scorep"
)
endif
()
if
(
CUDA_FOUND
)
set
(
OPENFPM_INIT_FILE
"initialize/initialize_wrapper_cuda.cu"
)
else
()
set
(
OPENFPM_INIT_FILE
"initialize/initialize_wrapper_cpu.cpp"
)
endif
()
###### CONFIG.h FILE ######
if
(
SE_CLASS1
)
set
(
DEFINE_SE_CLASS1
"#define SE_CLASS1"
)
endif
()
if
(
SE_CLASS2
)
set
(
DEFINE_SE_CLASS2
"#define SE_CLASS2"
)
endif
()
if
(
SE_CLASS3
)
set
(
DEFINE_SE_CLASS3
"#define SE_CLASS3"
)
endif
()
if
(
CUDA_FOUND
)
set
(
DEFINE_CUDA_GPU
"#define CUDA_GPU"
)
endif
()
if
(
METIS_FOUND
)
set
(
DEFINE_HAVE_METIS
"#define HAVE_METIS 1"
)
else
()
file
(
WRITE error_code
"201"
)
message
(
FATAL_ERROR
"Metis is required in order to install OpenFPM"
)
endif
()
if
(
PARMETIS_FOUND
)
set
(
DEFINE_HAVE_PARMETIS
"#define HAVE_PARMETIS 1"
)
else
()
file
(
WRITE error_code
"208"
)
message
(
FATAL_ERROR
"ParMetis is required in order to install OpenFPM"
)
endif
()
if
(
MPI_FOUND
)
set
(
DEFINE_HAVE_MPI
"#define HAVE_MPI"
)
else
()
file
(
WRITE error_code
"200"
)
message
(
FATAL_ERROR
"MPI is required in order to install OpenFPM"
)
endif
()
if
(
Boost_FOUND
)
set
(
DEFINE_HAVE_BOOST
"#define HAVE_BOOST"
)
set
(
DEFINE_HAVE_BOOST_IOSTREAMS
"#define HAVE_BOOST_IOSTREAMS"
)
set
(
DEFINE_HAVE_BOOST_PROGRAM_OPTIONS
"#define HAVE_BOOST_PROGRAM_OPTIONS"
)
set
(
DEFINE_HAVE_BOOST_UNIT_TEST_FRAMEWORK
"#define HAVE_BOOST_UNIT_TEST_FRAMEWORK"
)
else
()
file
(
WRITE error_code
"202"
)
message
(
FATAL_ERROR
"BOOST is required in order to install OpenFPM"
)
endif
()
if
(
HDF5_FOUND
)
if
(
HDF5_IS_PARALLEL
)
set
(
DEFINE_HAVE_HDF5
"#define HAVE_HDF5"
)
else
()
file
(
WRITE error_code
"207"
)
message
(
FATAL_ERROR
"HDF5 found
${
HDF5_INCLUDE_DIRS
}
does not have parallel support, OpenFPM require it"
)
endif
()
else
()
file
(
WRITE error_code
"207"
)
message
(
FATAL_ERROR
"HDF5 with parallel support is required in order to install OpenFPM"
)
endif
()
if
(
EIGEN_FOUND
)
set
(
DEFINE_HAVE_EIGEN
"#define HAVE_EIGEN"
)
endif
()
if
(
LIBHILBERT_FOUND
)
set
(
DEFINE_HAVE_LIBHILBERT
"#define HAVE_LIBHILBERT 1"
)
else
()
file
(
WRITE error_code
"210"
)
message
(
FATAL_ERROR
"LibHilbert is required in order to install OpenFPM"
)
endif
()
if
(
TINYOBJLOADER_FOUND
)
set
(
DEFINE_HAVE_TINYOBJLOADER
"#define HAVE_TINYOBJLOADER 1"
)
endif
()
file
(
WRITE error_code
"0"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/config/config_cmake.h.in
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/config/config.h
)
include_directories
(
SYSTEM
${
MPI_INCLUDE_PATH
}
)
add_subdirectory
(
src
)
add_subdirectory
(
openfpm_devices
)
add_subdirectory
(
images
)
add_subdirectory
(
openfpm_data
)
add_subdirectory
(
openfpm_io
)
add_subdirectory
(
openfpm_vcluster
)
add_subdirectory
(
openfpm_numerics
)
This diff is collapsed.
Click to expand it.
configure
+
7
−
4
View file @
8bf8a722
...
...
@@ -531,10 +531,13 @@ cmake ../. $conf_options
if
[
$?
!=
0
]
;
then
#ok something went wrong the install script analyze the return code to potentially fix the problem automatically
# Read the error code and exit with that
ecod
=
$(
cat
../error_code
)
echo
"Analyze error
$ecod
"
exit
$ecod
if
[
-f
../error_code
]
;
then
ecod
=
$(
cat
../error_code
)
echo
"Analyze error
$ecod
"
exit
$ecod
else
exit
1
fi
fi
cd
..
...
...
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