Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
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
Container 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_numerics
Commits
c5aac757
Commit
c5aac757
authored
Mar 23, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activate multiprecision only if libquadmath present
parent
4192ec42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
configure.ac
configure.ac
+9
-0
src/PSE/Kernels_unit_tests.hpp
src/PSE/Kernels_unit_tests.hpp
+7
-0
No files found.
configure.ac
View file @
c5aac757
...
...
@@ -119,6 +119,14 @@ if test x"$with_hdf5" = x"no"; then
fi
##########
## Check for quadmath
AC_CHECK_LIB(quadmath, sinq, [AC_DEFINE(HAVE_LIBQUADMATH,[],[Have quad math lib])
LIBQUADMATH=" -lquadmath "
], [])
####### include OpenFPM_numerics include path"
INCLUDES_PATH+=" -I/usr/local/include -I. -Iconfig -I../../openfpm_devices/src -I../../openfpm_data/src -I../../openfpm_io/src -I../../openfpm_vcluster/src -I../../src"
...
...
@@ -311,6 +319,7 @@ AC_DEFINE([HAVE_MPI],[],[MPI Enabled])
AC_SUBST(NVCCFLAGS)
AC_SUBST(INCLUDES_PATH)
AC_SUBST(LIBQUADMATH)
# Checks for typedefs, structures, and compiler characteristics.
...
...
src/PSE/Kernels_unit_tests.hpp
View file @
c5aac757
...
...
@@ -9,7 +9,9 @@
#define OPENFPM_NUMERICS_SRC_PSE_KERNELS_UNIT_TESTS_HPP_
#include "PSE/Kernels_test_util.hpp"
#ifdef HAVE_LIBQUADMATH
#include <boost/multiprecision/float128.hpp>
#endif
BOOST_AUTO_TEST_SUITE
(
pse_kernels_unit_tests
)
...
...
@@ -36,11 +38,13 @@ BOOST_AUTO_TEST_CASE( pse_ker )
/////// Order 2 //////////////
#ifdef HAVE_LIBQUADMATH
PSE_test
<
boost
::
multiprecision
::
float128
,
Lap_PSE
<
1
,
boost
::
multiprecision
::
float128
,
2
>>
(
i
,
2
,
err
);
y
.
last
().
add
(
err
.
linf_error
);
PSE_test
<
boost
::
multiprecision
::
float128
,
Lap_PSE
<
1
,
boost
::
multiprecision
::
float128
,
2
>>
(
i
,
4
,
err
);
y
.
last
().
add
(
err
.
linf_error
);
#endif
PSE_test
<
double
,
Lap_PSE
<
1
,
double
,
2
>>
(
i
,
2
,
err
);
y
.
last
().
add
(
err
.
linf_error
);
...
...
@@ -56,6 +60,7 @@ BOOST_AUTO_TEST_CASE( pse_ker )
//////// Order 4 /////////////
#ifdef HAVE_LIBQUADMATH
PSE_test
<
boost
::
multiprecision
::
float128
,
Lap_PSE
<
1
,
boost
::
multiprecision
::
float128
,
4
>>
(
i
,
2
,
err
);
y
.
last
().
add
(
err
.
linf_error
);
...
...
@@ -78,6 +83,8 @@ BOOST_AUTO_TEST_CASE( pse_ker )
PSE_test
<
boost
::
multiprecision
::
float128
,
Lap_PSE
<
1
,
boost
::
multiprecision
::
float128
,
8
>>
(
i
,
16
,
err
);
y
.
last
().
add
(
err
.
linf_error
);
#endif
}
// Check the result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment