Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_numerics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
yaskovet
openfpm_numerics
Commits
c5aac757
Commit
c5aac757
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
activate multiprecision only if libquadmath present
parent
4192ec42
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+9
-0
9 additions, 0 deletions
configure.ac
src/PSE/Kernels_unit_tests.hpp
+7
-0
7 additions, 0 deletions
src/PSE/Kernels_unit_tests.hpp
with
16 additions
and
0 deletions
configure.ac
+
9
−
0
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.
...
...
This diff is collapsed.
Click to expand it.
src/PSE/Kernels_unit_tests.hpp
+
7
−
0
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
...
...
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