A Practical Guide to Parallelization in Economics

66 Pages Posted: 2 May 2018

See all articles by Jesús Fernández-Villaverde

Jesús Fernández-Villaverde

University of Pennsylvania - Department of Economics; National Bureau of Economic Research (NBER)

David Zarruk-Valencia

University of Pennsylvania

Multiple version iconThere are 2 versions of this paper

Date Written: April 2018

Abstract

This guide provides a practical introduction to parallel computing in economics. After a brief introduction to the basic ideas of parallelization, we show how to parallelize a prototypical application in economics using, on CPUs, Julia, Matlab, R, Python, C++-OpenMP, Rcpp–OpenMP, and C++-MPI, and, on GPUs, CUDA and OpenACC. We provide code that the user can download and fork, present comparative results, and explain the strengths and weaknesses of each approach. We conclude with some additional remarks about alternative approaches.

Institutional subscribers to the NBER working paper series, and residents of developing countries may download this paper without additional charge at www.nber.org.

Suggested Citation

Fernández-Villaverde, Jesús and Zarruk-Valencia, David, A Practical Guide to Parallelization in Economics (April 2018). NBER Working Paper No. w24561. Available at SSRN: https://ssrn.com/abstract=3170815

Jesús Fernández-Villaverde (Contact Author)

University of Pennsylvania - Department of Economics ( email )

3718 Locust Walk
160 McNeil Building
Philadelphia, PA 19104
United States
215-898-1504 (Phone)
215-573-2057 (Fax)

National Bureau of Economic Research (NBER)

1050 Massachusetts Avenue
Cambridge, MA 02138
United States

David Zarruk-Valencia

University of Pennsylvania ( email )

Philadelphia, PA 19104
United States

Register to save articles to
your library

Register

Paper statistics

Downloads
18
Abstract Views
122
PlumX Metrics