Parallel Implementations of the Composite Trapezium Rule for Finding the Approximate value of an Integral with Intel® oneAPI

Oluwatosin

Oluwatosin

Unknown

0 0
  • 0 Collaborators

Parallel implementations of the Composite Trapezium Rule with OpenMP, OpenMP + oneMKL blas() and OpenMP + DPC++ ...learn more

Project status: Under Development

oneAPI, HPC

Intel Technologies
DevCloud, DPC++, MKL, Intel CPU, Other

Overview / Usage

Scope of the project:

The scope of this project is Numerical methods, Data Parallelism and High Performance Computing. Finding the approximate value of an integral is a problem under numerical integration.

The composite trapezium rule:

Suppose we have a function f(x) that is integrable on points a and b. The composite trapezium rule is derived when we divide points a and b into N number of subintervals having equal lengths and then we apply the trapezium rule to evaluate each integral.

Let the interval [a, b] be subdivided into N equal parts of length h. That is, h = (b – a)/N. The trapezium rule would then be applied to evaluate each N integrals.

Case Study Integral

In this project, the case study integral is 4/(1+(x*x)) for approximating the value of PI.

Methodology / Approach

Methodology:

  1. Expressing the composite trapezium rule as a dot product so as to exploit the features of OpenMP/oneMKL composability.
  2. Expressing the composite trapezium rule with partition technique to exploit the features of OpenMP/DPC++ composability
  3. Comparing OpenMP gpu offloading with DPC++ for data, memory and device management.

Technologies Used

Development Environment: Intel devcloud; for developing, testing and running the project

Intel Hardware: Intel® Xeon® E-2176G;

**oneAPI Toolkit: **oneAPI base and HPC toolkit;

Programming Support: Direct-based programming with OpenMP and API-based programming with oneMKL.

Comments (0)