Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_io
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_io
Commits
a63a55e5
Commit
a63a55e5
authored
Dec 26, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing IO
parent
593ac673
Changes
30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
0 additions
and
5583 deletions
+0
-5583
configure.ac
configure.ac
+0
-332
m4/.svn/entries
m4/.svn/entries
+0
-470
m4/.svn/text-base/acx_mpi.m4.svn-base
m4/.svn/text-base/acx_mpi.m4.svn-base
+0
-108
m4/.svn/text-base/acx_pthread.m4.svn-base
m4/.svn/text-base/acx_pthread.m4.svn-base
+0
-242
m4/.svn/text-base/ax_boost_base.m4.svn-base
m4/.svn/text-base/ax_boost_base.m4.svn-base
+0
-257
m4/.svn/text-base/ax_boost_program_options.m4.svn-base
m4/.svn/text-base/ax_boost_program_options.m4.svn-base
+0
-108
m4/.svn/text-base/ax_boost_thread.m4.svn-base
m4/.svn/text-base/ax_boost_thread.m4.svn-base
+0
-149
m4/.svn/text-base/ax_check_compiler_flags.m4.svn-base
m4/.svn/text-base/ax_check_compiler_flags.m4.svn-base
+0
-76
m4/.svn/text-base/ax_gcc_archflag.m4.svn-base
m4/.svn/text-base/ax_gcc_archflag.m4.svn-base
+0
-220
m4/.svn/text-base/ax_gcc_version.m4.svn-base
m4/.svn/text-base/ax_gcc_version.m4.svn-base
+0
-65
m4/.svn/text-base/ax_gcc_x86_cpuid.m4.svn-base
m4/.svn/text-base/ax_gcc_x86_cpuid.m4.svn-base
+0
-79
m4/.svn/text-base/ax_lib_mysql.m4.svn-base
m4/.svn/text-base/ax_lib_mysql.m4.svn-base
+0
-145
m4/.svn/text-base/ax_opencl.m4.svn-base
m4/.svn/text-base/ax_opencl.m4.svn-base
+0
-119
m4/.svn/text-base/ax_openmp.m4.svn-base
m4/.svn/text-base/ax_openmp.m4.svn-base
+0
-99
m4/.svn/text-base/programs.m4.svn-base
m4/.svn/text-base/programs.m4.svn-base
+0
-923
m4/acx_mpi.m4
m4/acx_mpi.m4
+0
-108
m4/acx_pthread.m4
m4/acx_pthread.m4
+0
-242
m4/ax_boost_base.m4
m4/ax_boost_base.m4
+0
-286
m4/ax_boost_iostreams.m4
m4/ax_boost_iostreams.m4
+0
-119
m4/ax_boost_program_options.m4
m4/ax_boost_program_options.m4
+0
-110
m4/ax_boost_unit_test_framework.m4
m4/ax_boost_unit_test_framework.m4
+0
-139
m4/ax_check_compiler_flags.m4
m4/ax_check_compiler_flags.m4
+0
-76
m4/ax_cuda.m4
m4/ax_cuda.m4
+0
-72
m4/ax_gcc_archflag.m4
m4/ax_gcc_archflag.m4
+0
-220
m4/ax_gcc_version.m4
m4/ax_gcc_version.m4
+0
-65
m4/ax_gcc_x86_cpuid.m4
m4/ax_gcc_x86_cpuid.m4
+0
-79
m4/ax_lib_hdf5.m4
m4/ax_lib_hdf5.m4
+0
-312
m4/ax_lib_mysql.m4
m4/ax_lib_mysql.m4
+0
-145
m4/ax_opencl.m4
m4/ax_opencl.m4
+0
-119
m4/ax_openmp.m4
m4/ax_openmp.m4
+0
-99
No files found.
configure.ac
deleted
100755 → 0
View file @
593ac673
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(OpenFPM_io, 1.0.0, BUG-REPORT-ADDRESS)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR([src/main.cpp])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADER([src/config/config.h])
m4_ifdef([ACX_PTHREAD],,[m4_include([m4/acx_pthread.m4])])
m4_ifdef([ACX_MPI],,[m4_include([m4/acx_mpi.m4])])
m4_ifdef([AX_OPENMP],,[m4_include([m4/ax_openmp.m4])])
m4_ifdef([AX_CUDA],,[m4_include([m4/ax_cuda.m4])])
m4_ifdef([AX_BOOST_BASE],,[m4_include([m4/ax_boost_base.m4])])
m4_ifdef([AX_BOOST_IOSTREAMS],,[m4_include([m4/ax_boost_iostreams.m4])])
m4_ifdef([AX_BOOST_PROGRAM_OPTIONS],,[m4_include([m4/ax_boost_program_options.m4])])
m4_ifdef([AX_BOOST_UNIT_TEST_FRAMEWORK],,[m4_include([m4/ax_boost_unit_test_framework.m4])])
m4_ifdef([AX_LIB_HDF5],,[m4_include([m4/ax_lib_hdf5.m4])])
case $host_os in
*cygwin*)
# Do something specific for cygwin
CXXFLAGS+=" --std=gnu++11 "
;;
*)
#Default Case
CXXFLAGS+=" --std=c++11 "
;;
esac
CXXFLAGS+=" -march=native -mtune=native -Wno-unused-local-typedefs -Wextra -Wno-unused-parameter "
NVCCFLAGS=" "
INCLUDES_PATH=" "
AC_LANG_PUSH([C++])
AC_CHECK_HEADER(mpi.h,[],[echo "mpi.h not found"
exit 200])
AC_LANG_POP([C++])
# set default prefix
if test "$prefix" = "NONE"; then
prefix="/usr/local"
fi
# Add openfpm_io to prefix forlder (if prefix end if openfpm_pdata remove that path)
if [ echo "$prefix" | grep -qE "/openfpm_pdata$" ]; then
prefix=$(echo "$prefix" | sed 's/\(.*\)\/openfpm_pdata$/\1/g')
fi
prefix="$prefix/openfpm_io"
echo "Installation dir is: $prefix"
# Checks for programs.
AC_PROG_CXX
# Checks g++ flags
AC_CANONICAL_HOST
###### Check for debug compilation
AC_MSG_CHECKING(whether to build with debug information)
debuger=no
AC_ARG_ENABLE(debug,
AC_HELP_STRING(
[--enable-debug],
[enable debug data generation (def=no)]
),
debuger="$enableval"
)
AC_MSG_RESULT($debuger)
if test x"$debuger" = x"yes"; then
AC_DEFINE([DEBUG_MODE],[],[Debug])
AC_DEFINE([DEBUG],[],[Debug])
CXXFLAGS="$CXXFLAGS -g3 -Wall -O0 "
NVCCFLAGS+="$NVCCFLAGS -g -O0 "
else
CXXFLAGS="$CXXFLAGS -Wall -O3 -g3 -funroll-loops "
NVCCFLAGS+="$NVCCFLAGS -O3 "
fi
##### Enable test coverage
AC_MSG_CHECKING(whether to build with test coverage)
test_cov=no
AC_ARG_ENABLE(test-coverage,
AC_HELP_STRING(
[--enable-test-coverage],
[enable test coverage]
),
test_cov="$enableval"
)
AC_MSG_RESULT($test_cov)
if test x"$test_cov" = x"yes"; then
AC_DEFINE([TEST_COVERAGE_MODE],[],[Test coverage mode])
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage "
fi
###### Check for se-class1
AC_MSG_CHECKING(whether to build with security enhancement class1)
se_class1=no
AC_ARG_ENABLE(se-class1,
AC_HELP_STRING(
[--enable-se-class1],
[enable security enhancement class1]
),
se_class1="$enableval"
)
AC_MSG_RESULT($se_class1)
if test x"$se_class1" = x"yes"; then
AC_DEFINE([SE_CLASS1],[],[Security enhancement class 1])
fi
###### Check for se-class 2
AC_MSG_CHECKING(whether to build with security enhancement class 2)
se_class2=no
AC_ARG_ENABLE(se-class2,
AC_HELP_STRING(
[--enable-se-class2],
[enable security enhancement class 2]
),
se_class2="$enableval"
)
AC_MSG_RESULT($se_class2)
if test x"$se_class2" = x"yes"; then
AC_DEFINE([SE_CLASS2],[],[Security enhancement class 2])
fi
###### Check for se-class 3
AC_MSG_CHECKING(whether to build with security enhancement class 3)
se_class3=no
AC_ARG_ENABLE(se-class3,
AC_HELP_STRING(
[--enable-se-class3],
[enable security enhancement class 3]
),
se_class3="$enableval"
)
AC_MSG_RESULT($se_class3)
if test x"$se_class3" = x"yes"; then
AC_DEFINE([SE_CLASS3],[],[Security enhancement class 3])
fi
###### Checking for compiler flags -fext-numeric-literals
AC_LANG_PUSH([C++])
my_save_cflags="$CXXFLAGS"
CXXFLAGS=-fext-numeric-literals
AC_MSG_CHECKING([whether CXX supports -fext-numeric-literals])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])
AM_CXXFLAGS="-fext-numeric-literals"
],
[
AC_MSG_RESULT([no])
]
)
AC_LANG_POP([C++])
CXXFLAGS="$my_save_cflags"
AC_SUBST([AM_CXXFLAGS])
####### Set location of openfpm_pdata
AC_ARG_WITH([pdata],
AS_HELP_STRING([--with-pdata=directory],
[specify where is located the pdata project]),
[pdata_dir="$withval"],
[pdata_dir="../../src"])
####### HDF5
AX_LIB_HDF5([parallel])
if test x"$with_hdf5" = x"no"; then
echo "Cannot detect hdf5, use the --with-hdf5 option if it is not installed in the default location"
exit 207
fi
####### include openfpm_devices include path
INCLUDES_PATH+="-I. -Iconfig -I../../openfpm_data/src -I../../openfpm_devices/src -I../../openfpm_vcluster/src -I$pdata_dir "
########
## Enable scan coverty
AC_MSG_CHECKING(whether to build for scan coverty compilation)
AC_ARG_ENABLE(scan-coverty,
AC_HELP_STRING(
[--enable-scan-coverty],
[enable scan-coverty compilation (def=no)]
),
scancoverty="$enableval"
)
AC_MSG_RESULT($scancoverty)
if test x"$scancoverty" = x"yes"; then
AC_DEFINE([COVERTY_SCAN],[],[Compile for coverty scan])
fi
AC_DEFINE([ON_IO_UNIT_TESTS],[],[IO unit tests])
##### CHECK FOR BOOST ##############
AX_BOOST_BASE([1.52],[],[echo "boost not found"
exit 202])
AX_BOOST_UNIT_TEST_FRAMEWORK
AX_BOOST_PROGRAM_OPTIONS
AX_BOOST_IOSTREAMS
if test x"$ax_cv_boost_unit_test_framework" = x"no"; then
echo "Notify boost not usable"
exit 202
fi
if test x"$ax_cv_boost_iostreams" = x"no"; then
echo "Notify boost not usable"
exit 202
fi
if test x"$ax_cv_boost_programs_options" = x"no"; then
echo "Notify boost not usable"
exit 202
fi
### Unfortunately a lot of linux distros install a pretty old MPI in the system wide folder,
### override such MPI with the installed one is extremely difficult and tricky, because we want
### to include "some" system library but exclude mpi. One possibility is to give specifically
### the wanted libmpi.so directly to the linker. But this is not possible because this lib is
### given by mpic++ in the form -L/path/to/mpi -lmpi, the other is completely eliminate every
### -L with a system default library
###
# eliminate any /usr/lib and and /usr/include from $BOOST_LIB and $BOOST_INCLUDE
BOOST_LDFLAGS=$(echo "$BOOST_LDFLAGS" | sed -e 's/ -L\/usr\/lib64[ \b]//g' | sed -e 's/ -L\/usr\/lib[ \b]//g')
BOOST_CPPFLAGS=$(echo "$BOOST_CPPFLAGS" | sed -e 's/-I\/usr\/include[ \b]//g')
AC_SUBST(BOOST_LDFLAGS)
AC_SUBST(BOOST_CPPFLAGS)
####### Checking for GPU support
AX_CUDA
if test x"$NVCC_EXIST" = x"yes"; then
AC_MSG_CHECKING(whether to build with GPU support)
gpu_support=yes
AC_ARG_ENABLE(gpu,
AC_HELP_STRING(
[--enable-gpu],
[enable gpu support]
),
gpu_support="$enableval"
)
AC_MSG_RESULT($gpu_support)
if test x"$gpu_support" = x"yes"; then
AC_DEFINE([CUDA_GPU],[],[CUDA GPU support])
fi
else
gpu_support=no
fi
# Set this conditional if cuda is wanted
#
AM_CONDITIONAL(BUILDCUDA, test x$gpu_support = x"yes")
##########################
AC_SUBST(NVCCFLAGS)
AC_SUBST(INCLUDES_PATH)
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
echo ""
echo "***********************************"
echo "* *"
if [ test x"$profiler" = x"yes" ]; then
echo "* profiler: yes *"
else
echo "* profiler: no *"
fi
if [ test x"$memcheck" = x"yes" ]; then
echo "* memcheck: yes *"
else
echo "* memcheck: no *"
fi
if [ test x"$debuger" = x"yes" ]; then
echo "* debug: yes *"
else
echo "* debug: no *"
fi
if [ test x"$gpu_support" = x"no" ]; then
echo "* gpu: no *"
else
echo "* gpu: yes *"
fi
echo "* *"
echo "***********************************"
m4/.svn/entries
deleted
100755 → 0
View file @
593ac673
10
dir
936
svn://ibird.ath.cx/svn/repo/rhmc/trunk/rhmc_20_07_2010/m4
svn://ibird.ath.cx/svn/repo/rhmc
2012-01-18T23:10:09.412529Z
608
ibird
05885b04-6644-4e05-9b08-5043e251875b
acx_mpi.m4
file
2012-02-27T09:44:46.656966Z
64b9623c0f01aeabbc07c1c14e31e474
2011-05-01T16:40:35.209298Z
118
ibird
3902
ax_boost_program_options.m4
file
2012-02-27T09:44:46.657966Z
df549125ea719d25a168766b45ff8321
2011-02-18T01:07:35.655725Z
1
i-bird
4809
acx_pthread.m4
file
2012-02-27T09:44:46.657966Z
c77c1b458009722a892e9c848d491d9c
2011-02-18T01:07:35.655725Z
1
i-bird
9512
ax_lib_mysql.m4
file
2012-02-27T09:44:46.657966Z
2324a6f7e740da3ae198c00126dacb22
2011-02-18T01:07:35.655725Z
1
i-bird
4506
ax_boost_thread.m4
file
2012-02-27T09:44:46.658966Z
f6c41db1f191380670192b1416ec144e
2011-03-30T23:32:49.807437Z
48
ibird
5396
ax_openmp.m4
file
2012-02-27T09:44:46.658966Z
8a00cbce21bf0ed1e8272064f679c111
2012-01-18T23:02:08.895776Z
605
ibird
4284
ax_boost_base.m4
file
2012-02-27T09:44:46.659966Z
1c3d3941a1d2a34b5093df43f4eff3f9
2011-02-18T01:07:35.655725Z
1
i-bird
10265
ax_opencl.m4
file
2012-02-27T09:44:46.659966Z
fd297403b44095eff6045a2f75d7b000
2011-02-18T01:07:35.655725Z
1
i-bird
4043
ax_gcc_version.m4
file
2012-02-27T09:44:46.659966Z
4472b41f4b48be2a792a34cb059caa31
2012-01-18T23:07:46.147457Z
607
ibird
2512
programs.m4
file
2012-02-27T09:44:46.660966Z
62c9967f8e83f3376724ebd9518c535f
2011-02-18T01:07:35.655725Z
1
i-bird