Coder Social home page Coder Social logo

openaccusergroup / openacc_concept_strategies_book Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 17.0 22.33 MB

This repository contains application codes and solutions for the Book on "OpenACC for Programmers - Concept & Strategies".

License: Other

Makefile 0.63% C 31.44% Fortran 0.99% Shell 1.06% C++ 64.91% Jupyter Notebook 0.97%

openacc_concept_strategies_book's People

Contributors

adrianjhpc avatar jefflarkin avatar jirikraus avatar joshwyatt avatar juckel avatar noahrossi avatar sunitachandra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openacc_concept_strategies_book's Issues

Chapter 2, Mandelbrot example, inconsistent result for OpenACC on PGI

Chapter 2, Mandelbrot example:

Accelerator version using PGI compiler gives a different result than the same code using gcc8 (for both openmp and nvptx+acc), pgi using openmp and the serial pgi, see results below:
tests> ./area.gcc.acc
Area of Mandlebrot set = 1.50787863 +/- 0.00037697
Time taken for calculation: 35.649632
tests> ./area.gcc.omp
Area of Mandlebrot set = 1.50787371 +/- 0.00037697
Time taken for calculation: 37.912720 on 8 threads
tests> ./area.pgi.omp
Area of Mandlebrot set = 1.50787863 +/- 0.00037697
Time taken for calculation: 27.200890 on 8 threads
tests> ./area.pgi.acc
Area of Mandlebrot set = 2.98259191 +/- 0.00074565
Time taken for calculation: 15.394787

tests> ./area.pgi.ser
Area of Mandlebrot set = 1.50787863 +/- 0.00037697
Time taken for calculation: 81.918041
tests>

Moreover, the pgi+acc version results are not stable, upon repeating the execution several times, different results were obtained:

tests> ./area.pgi.acc
Area of Mandlebrot set = 5.19458836 +/- 0.00129865
Time taken for calculation: 15.496788
tests> ./area.pgi.acc
Area of Mandlebrot set = 1.87656363 +/- 0.00046914
Time taken for calculation: 15.315470
tests> ./area.pgi.acc
Area of Mandlebrot set = 3.35120801 +/- 0.00083780
Time taken for calculation: 15.405854
tests>

The tests took place on an Asus laptop with 16GB RAM, i7 CPU, nvidia GeForce GTX-1050 GPU and Linux Mint.

Regards,

Guy Tel-Zur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.