A Practical Guide to Parallelization in Economics

68 Pages Posted: 1 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.

Keywords: Computational Methods, Parallel Computing, Programming Languages

JEL Classification: C63, C68, E37

Suggested Citation

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

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
0
Abstract Views
107
PlumX Metrics