1. A method comprising: in response to a command to convert an MPI source code program to an MPI thread-based program, performing the following by a converter executed by a processor: declaring a global variable of the MPI source code program as a thread private variable to create a first private variable for a first thread and a second private variable for a second thread; identifying a library to use to build an executable version of the MPI thread-based program; and building the executable version of the MPI thread-based program using the identified library.