{"id":157,"date":"2018-04-18T23:12:43","date_gmt":"2018-04-18T20:12:43","guid":{"rendered":"http:\/\/talhacelik.com.tr\/?p=157"},"modified":"2018-04-27T01:58:18","modified_gmt":"2018-04-26T22:58:18","slug":"mpi","status":"publish","type":"post","link":"https:\/\/talhacelik.com.tr\/index.php\/2018\/04\/18\/mpi\/","title":{"rendered":"MPI (Message Passing Interface)"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-size: 14pt;\"><strong>MPI Nedir ?<\/strong> <\/span><\/p>\n<p style=\"text-align: justify;\">MPI (Message Passing Interface)\u00a0 paralel programlama yapmak amac\u0131 ile kullan\u0131lan C dilini temel alan bir platform, C dili k\u00fct\u00fcphanesidir.<\/p>\n<p style=\"text-align: justify;\">MPI paralel programlamaya giri\u015f i\u00e7in \u00f6\u011fretici ve temel olabilecek bir platformdur.<\/p>\n<p style=\"text-align: justify;\">Paralel programlama genel olarak <strong>birden fazla bilgisayar<\/strong> \u00fczerinde ayn\u0131 program\u0131n <strong>da\u011f\u0131t\u0131k\u00a0<\/strong>bir \u015fekilde i\u015flenip verinin al\u0131nmas\u0131na verilen isimdir. Paralel programlama yapman\u0131n amac\u0131 tamamen zamandan kazan\u00e7 sa\u011flayarak i\u015flerin h\u0131zland\u0131r\u0131lmas\u0131n\u0131 sa\u011flamakt\u0131r fakat bunu yaparken ters oranl\u0131 olarak enerjide harcanacakt\u0131r. Yani <em>zaman = 1 \/ enerji<\/em> \u015feklinde ters bir orant\u0131 vard\u0131r.<\/p>\n<p style=\"text-align: justify;\">Paralel programlama yapabilmek i\u00e7in hali haz\u0131rda \u015firketlerin kurdu\u011fu platformlar mevcuttur. \u00d6rne\u011fin <a href=\"https:\/\/aws.amazon.com\/hpc\/\">Amazon HPC<\/a>, <a href=\"https:\/\/cloud.google.com\/solutions\/architecture\/highperformancecomputing\">Google Cloud Platform<\/a>, <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSENRW\/product_welcome_hpc.html\">IBM HPC<\/a>, <a href=\"https:\/\/www.nimbix.net\/\">Nimbix Supercomputer.<\/a><\/p>\n<figure id=\"attachment_175\" aria-describedby=\"caption-attachment-175\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-175 size-medium\" src=\"http:\/\/talhacelik.com.tr\/wp-content\/uploads\/2018\/04\/paralel-300x219.jpg\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/talhacelik.com.tr\/wp-content\/uploads\/2018\/04\/paralel-300x219.jpg 300w, https:\/\/talhacelik.com.tr\/wp-content\/uploads\/2018\/04\/paralel.jpg 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-175\" class=\"wp-caption-text\">MPI ilk 1994 y\u0131l\u0131nda ortaya \u00e7\u0131km\u0131\u015ft\u0131r ve san\u0131r\u0131m ilk paralel programc\u0131lar resimdeki arkada\u015fa benziyormu\u015f \ud83d\ude42<\/figcaption><\/figure>\n<p><span style=\"font-size: 14pt;\"><strong>MPI Install<\/strong><\/span><\/p>\n<p><a href=\"http:\/\/www.mpich.org\/downloads\/\">Buradan<\/a> sisteminize uygun olan paketi indirdikten sonra devam\u0131ndaki komutlar\u0131 i\u015fletebiliriz .<\/p>\n<pre class=\"highlight\"><code><strong>tar -xzf mpichx.x-x.tar.gz<\/strong> # dosyay\u0131 dizine \u00e7\u0131kart\u0131yoruz\r\n\r\n<strong>.\/configure --disable-fortran<\/strong> # <a href=\"http:\/\/talhacelik.com.tr\/index.php\/2018\/01\/07\/makefile-nedir\/\">makefile<\/a> ayarlar\u0131n\u0131 yap\u0131yoruz. Fortran dilini kullanmayaca\u011f\u0131m\u0131z i\u00e7in disable ettik.\r\n\r\n<strong>make<\/strong> # make dosyas\u0131n\u0131 \u00e7a\u011f\u0131rd\u0131k\r\n\r\n<strong>make install<\/strong> # gerekli y\u00fcklemeleri yapmas\u0131n\u0131 sa\u011flad\u0131k\r\n\r\n# y\u00fckleme bittikten sonra test ama\u00e7l\u0131 derleme yapmak i\u00e7in MPICH'in i\u00e7erisinde bulunan mpicc ile \u00f6rnek bir *.c dosyamz\u0131 derleyebiliriz. Yada <strong>mpichversion<\/strong> komutu ile versiyonumuzu \u00f6\u011frenebiliriz.\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong><span style=\"font-size: 14pt;\">MPI Fonksiyonlar\u0131<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\">Bir sonraki g\u00f6nderide, basitten karma\u015f\u0131\u011fa do\u011fru MPI k\u00fct\u00fcphanesinin fonksiyonlar\u0131n\u0131, parametrelerini, kullan\u0131m \u015fekillerini ve \u00f6rneklerini unix tabanl\u0131 sistem \u00fczerinde anlatmaya \u00e7al\u0131\u015faca\u011f\u0131m.<\/p>\n<p>MPI fonksiyonlar\u0131n\u0131n ve \u00e7al\u015ft\u0131r\u0131labilir dosyalar\u0131n d\u00f6k\u00fcmantasyonu ve t\u00fcm fonksiyonlar\u0131n listesi <a href=\"https:\/\/www.open-mpi.org\/doc\/current\/\">open-mpi<\/a> \u00fczerinde mevcuttur.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 10pt;\"><strong>Kaynaklar<\/strong><\/span><\/p>\n<ul>\n<li style=\"text-align: justify;\"><span style=\"font-size: 10pt;\"><a href=\"https:\/\/www.open-mpi.org\/doc\/current\/\">Open MPI<\/a><\/span><\/li>\n<li style=\"text-align: justify;\"><span style=\"font-size: 10pt;\"><a href=\"http:\/\/mpitutorial.com\/tutorials\/mpi-introduction\/\">MPI Tutorial &#8211; Was Kendall<\/a><\/span><\/li>\n<li><span style=\"font-size: 10pt;\"><a href=\"https:\/\/computing.llnl.gov\/tutorials\/mpi\/#What\"><span class=\"site-name\">Lawrence Livermore National Laboratory <\/span><\/a><\/span>\n<div class=\"container\" style=\"text-align: justify;\"><\/div>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>MPI Nedir ? MPI (Message Passing Interface)\u00a0 paralel programlama yapmak amac\u0131 ile kullan\u0131lan C dilini temel alan bir platform, C dili k\u00fct\u00fcphanesidir. MPI paralel programlamaya giri\u015f i\u00e7in \u00f6\u011fretici ve temel olabilecek bir platformdur. Paralel programlama genel olarak birden fazla bilgisayar \u00fczerinde ayn\u0131 program\u0131n da\u011f\u0131t\u0131k\u00a0bir \u015fekilde i\u015flenip verinin al\u0131nmas\u0131na verilen isimdir. Paralel programlama yapman\u0131n amac\u0131 tamamen &hellip;<\/p>\n","protected":false},"author":1,"featured_media":174,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[14,3,31,30],"_links":{"self":[{"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/posts\/157"}],"collection":[{"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":19,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/posts\/157\/revisions\/178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/media\/174"}],"wp:attachment":[{"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/talhacelik.com.tr\/index.php\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}