The Software Defect Prediction (SDP) method forecasts the occurrence of defects at the beginning of the software development process. Early fault detection will decrease the overall cost of software and improve its dependability. However, no effort has been made in high-performance software to address it. The contribution of this paper is a model for predicting software defects in the Message Passing Interface (MPI) based on machine learning (ML). This system predicts defects, including deadlock, race conditions, and mismatch, by dividing the model into three stages: training, testing, and prediction. The training phase extracts and combines the features, as well as the label. The system was trained on classification. During the testing phase, these features are extracted and classified, and then the classifier’s output is compared to the label to calculate results such as accuracy and recall, among others. The prediction phase inputs the MPI code, retrieves and combines the features, and determines whether it includes defects. If it discovers a defect, the correction subsystem corrects it. The three stages used the following features: analysis features (AF), Halstead features (HF), and semantic features (SF). The model used SVM, NB, DT, and RF classifiers. We collected 40 MPI codes in C++, some of which had faults and others did not, including all MPI communication. Results show the NB classifiers have high accuracy, precision, and recall, which are about 1. Also, the accuracy is good in DT classifiers with AF combined with HF and AF combined with HF and SF.