Commit 53f645b1 authored by incardon's avatar incardon

Fixing libquadmath

parent fd67c262
......@@ -93,7 +93,21 @@ if test x"$test_per" = x"yes"; then
AC_DEFINE([PERFORMANCE_TEST],[],[Test performance mode])
fi
###### Check for se-class1
###### 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])
###### Check for se-class1
......
......@@ -9,7 +9,7 @@ endif
noinst_PROGRAMS = mem_map
mem_map_SOURCES = ../../openfpm_devices/src/Memleak_check.cpp main.cpp $(CUDA_SOURCES) ../../openfpm_devices/src/memory/HeapMemory.cpp ../../openfpm_devices/src/memory/PtrMemory.cpp
mem_map_CXXFLAGS = $(LIBHILBERT_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I/usr/local/include -I/usr/local/libhilbert/include
mem_map_CXXFLAGS = $(AM_CXXFLAGS) $(LIBHILBERT_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I/usr/local/include -I/usr/local/libhilbert/include
mem_map_CFLAGS = $(CUDA_CFLAGS)
mem_map_LDADD = $(LINKLIBS)
......
......@@ -16,9 +16,23 @@
#include "CellListIterator.hpp"
#include "CellListNNIteratorRadius.hpp"
#include <unordered_map>
#include <boost/multiprecision/float128.hpp>
#include "util/common.hpp"
#include <boost/multiprecision/float128.hpp>
//! Wrapper of the unordered map
template<typename key,typename val>
class wrap_unordered_map: public std::unordered_map<key,val>
{
};
//! Wrapper of the unordered map
template<typename val>
class wrap_unordered_map<boost::multiprecision::float128,val>
{
};
#define STARTING_NSLOT 16
/*! \brief Class for FAST cell list implementation
......@@ -107,7 +121,7 @@ private:
base cl_base;
//! Caching of r_cutoff radius
std::unordered_map<T,openfpm::vector<long int>> rcache;
wrap_unordered_map<T,openfpm::vector<long int>> rcache;
/*! \brief realloc the data structures
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment