We have developed the high-performance software and algorithmic software for solving the direct and inverse problems of modeling and inversion of spatially distributed magnetic, taking into account the relief. We show the results of solving the inverse problem of magnetic survey taking into account the relief for synthetic noisy data.