Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated warped2-models to c++20 compliance. #24

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# WARPED Simulation Models
Simulation models for the WARPED Parallel & Distributed Discrete Simulation Library

# Prerequisite

Before building this project, you need to have the following dependencies installed: libre2-dev.

sudo apt install libre2-dev

# Building

The WARPED models are built with a C++11 compiler (see [here](http://lektiondestages.blogspot.de/2013/05/installing-and-switching-gccg-versions.html) for instructions about upgrading and switching GCC versions if you have an old version of GCC that does not support the required features.).
Expand Down
48 changes: 48 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

# we want this script to fail on any error
set -e
cd ../ #go back one directory
export CUR_LOC=`pwd`
echo "Building warped2 and warped2-models at: " $CUR_LOC

#
# warped2
#
ARGS=$1

echo "....warped2"
date
cd warped2
autoreconf -i

#
# configure with openmpi
#
export MPI_LOC=/usr/lib/x86_64-linux-gnu/openmpi/include

# build warped2
./configure --with-mpi-includedir=$MPI_LOC --prefix=$CUR_LOC/warped2/local CXXFLAGS='-g -O3' $1
make -j 8 install
date
# return to original subdirectory
cd $CUR_LOC

#
# warped2-models
#

echo "....warped2-models"
date

cd warped2-models
autoreconf -i

# build warped2-models
./configure --with-warped=$CUR_LOC/warped2/local CXXFLAGS='-g -O3' CXX=mpicxx
make -j 8
date

# return to original subdirectory
cd $CUR_LOC

8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ dnl Checks for programs.
LT_INIT([disable-shared])
AC_PROG_CXX

m4_include([m4/ax_cxx_compile_stdcxx_11.m4])
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
dnl specify C++20 as desired version
m4_include([m4/ax_cxx_compile_stdcxx.m4])
AX_CXX_COMPILE_STDCXX(20,[noext], [mandatory])

dnl Check for libwarped
m4_include([m4/check_lib_warped.m4])
Expand All @@ -21,11 +22,10 @@ CHECK_LIB_WARPED
m4_include([m4/check_lib_tcmalloc.m4])
CHECK_LIB_TCMALLOC

CXXFLAGS="-Wall -Wextra -pedantic -Werror $CXXFLAGS"
CXXFLAGS="-Wall -Wextra -Werror -pedantic $CXXFLAGS"

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([deps/Makefile])
AC_CONFIG_FILES([deps/re2/Makefile])
AC_CONFIG_FILES([deps/ppm/Makefile])
AC_CONFIG_FILES([models/Makefile])
AC_CONFIG_FILES([models/phold/Makefile])
Expand Down
2 changes: 1 addition & 1 deletion deps/Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBDIRS = re2 ppm
SUBDIRS = ppm
13 changes: 0 additions & 13 deletions deps/re2/AUTHORS

This file was deleted.

40 changes: 0 additions & 40 deletions deps/re2/CONTRIBUTORS

This file was deleted.

27 changes: 0 additions & 27 deletions deps/re2/LICENSE

This file was deleted.

73 changes: 0 additions & 73 deletions deps/re2/Makefile.am

This file was deleted.

Loading