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
4f2fe3c3
Commit
4f2fe3c3
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing PETSC with openmp
parent
08d495e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
script/install_PETSC.sh
+1
-1
1 addition, 1 deletion
script/install_PETSC.sh
src/Makefile.am
+3
-3
3 additions, 3 deletions
src/Makefile.am
with
7 additions
and
4 deletions
configure.ac
+
3
−
0
View file @
4f2fe3c3
...
...
@@ -147,6 +147,9 @@ AC_CHECK_LIB(quadmath, sinq, [AC_DEFINE(HAVE_LIBQUADMATH,[],[Have quad math lib]
LIBQUADMATH=" -lquadmath "
], [])
AC_SUBST(OPENMP_CFLAGS)
AC_SUBST(OPENMP_LDFLAGS)
########
## Enable scan coverty
...
...
This diff is collapsed.
Click to expand it.
script/install_PETSC.sh
+
1
−
1
View file @
4f2fe3c3
...
...
@@ -109,9 +109,9 @@ if [ ! -d "$1/TRILINOS" ]; then
petsc_openmp
=
""
if
[
x
"
$dgc_compiler
"
==
x
"clang++"
]
;
then
conf_trl_openmp
=
"-D Trilinos_ENABLE_OpenMP=OFF"
petsc_openmp
=
"--with-openmp=yes"
else
conf_trl_openmp
=
"-D Trilinos_ENABLE_OpenMP=ON"
# petsc_openmp="--with-openmp=yes"
fi
cmake
-D
CMAKE_INSTALL_PREFIX:PATH
=
$1
/TRILINOS
-D
CMAKE_BUILD_TYPE
=
RELEASE
$conf_trl_openmp
-D
Trilinos_ENABLE_TESTS
=
OFF
-D
Trilinos_ENABLE_ALL_PACKAGES
=
ON
$configure_trilinos_options
../.
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
3
−
3
View file @
4f2fe3c3
LINKLIBS
=
$(
LIBHILBERT_LIB
)
$(
METIS_LIB
)
$(
PTHREAD_LIBS
)
$(
OPT_LIBS
)
$(
BOOST_LDFLAGS
)
$(
BOOST_IOSTREAMS_LIB
)
$(
CUDA_LIBS
)
$(
PETSC_LIB
)
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
$(
PARMETIS_LIB
)
$(
BOOST_UNIT_TEST_FRAMEWORK_LIB
)
$(
BOOST_CHRONO_LIB
)
$(
BOOST_TIMER_LIB
)
$(
BOOST_SYSTEM_LIB
)
LINKLIBS
=
$(
OPENMP_LDFLAGS
)
$(
LIBHILBERT_LIB
)
$(
METIS_LIB
)
$(
PTHREAD_LIBS
)
$(
OPT_LIBS
)
$(
BOOST_LDFLAGS
)
$(
BOOST_IOSTREAMS_LIB
)
$(
CUDA_LIBS
)
$(
PETSC_LIB
)
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
$(
PARMETIS_LIB
)
$(
BOOST_UNIT_TEST_FRAMEWORK_LIB
)
$(
BOOST_CHRONO_LIB
)
$(
BOOST_TIMER_LIB
)
$(
BOOST_SYSTEM_LIB
)
noinst_PROGRAMS
=
pdata
pdata_SOURCES
=
main.cpp Grid/grid_dist_id_unit_test.cpp lib/pdata.cpp test_multiple_o.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
pdata_CXXFLAGS
=
$(
AM_CXXFLAGS
)
$(
LIBHILBERT_INCLUDE
)
$(
PETSC_INCLUDE
)
$(
HDF5_CPPFLAGS
)
$(
CUDA_CFLAGS
)
$(
INCLUDES_PATH
)
$(
PARMETIS_INCLUDE
)
$(
METIS_INCLUDE
)
$(
BOOST_CPPFLAGS
)
$(
H5PART_INCLUDE
)
-DPARALLEL_IO
-Wno-unused-local-typedefs
pdata_CXXFLAGS
=
$(
OPENMP_CFLAGS
)
$(
AM_CXXFLAGS
)
$(
LIBHILBERT_INCLUDE
)
$(
PETSC_INCLUDE
)
$(
HDF5_CPPFLAGS
)
$(
CUDA_CFLAGS
)
$(
INCLUDES_PATH
)
$(
PARMETIS_INCLUDE
)
$(
METIS_INCLUDE
)
$(
BOOST_CPPFLAGS
)
$(
H5PART_INCLUDE
)
-DPARALLEL_IO
-Wno-unused-local-typedefs
pdata_CFLAGS
=
$(
CUDA_CFLAGS
)
pdata_LDADD
=
$(
LINKLIBS
)
-lparmetis
-lmetis
nobase_include_HEADERS
=
Decomposition/CartDecomposition.hpp Decomposition/CartDecomposition_ext.hpp Decomposition/common.hpp Decomposition/Decomposition.hpp Decomposition/ie_ghost.hpp
\
...
...
@@ -18,7 +18,7 @@ nobase_include_HEADERS = Decomposition/CartDecomposition.hpp Decomposition/CartD
lib_LIBRARIES
=
libofpm_pdata.a
libofpm_pdata_a_SOURCES
=
lib/pdata.cpp
libofpm_pdata_a_CXXFLAGS
=
$(
AM_CXXFLAGS
)
$(
INCLUDES_PATH
)
$(
BOOST_CPPFLAGS
)
-I
/usr/local/include
-Wno-unused-local-typedefs
libofpm_pdata_a_CXXFLAGS
=
$(
OPENMP_CFLAGS
)
$(
AM_CXXFLAGS
)
$(
INCLUDES_PATH
)
$(
BOOST_CPPFLAGS
)
-I
/usr/local/include
-Wno-unused-local-typedefs
libofpm_pdata_a_CFLAGS
=
.cu.o
:
...
...
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