{"id":1423,"date":"2017-09-04T16:45:41","date_gmt":"2017-09-04T07:45:41","guid":{"rendered":"http:\/\/rageworx.info\/?p=1423"},"modified":"2017-09-04T16:45:41","modified_gmt":"2017-09-04T07:45:41","slug":"how-to-know-my-gcc-openmp-version","status":"publish","type":"post","link":"https:\/\/rageworx.info\/?p=1423","title":{"rendered":"How to know my gcc OpenMP version ?"},"content":{"rendered":"<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/09\/OpenMP_logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1424\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/09\/OpenMP_logo.png\" alt=\"\" width=\"336\" height=\"120\" \/><\/a><\/p>\n<p>Here&#8217;s some easy way to know my gcc support what version of OpenMP in compiling level.<\/p>\n<p>First, type this to your shell ( not Windows )<\/p>\n<p><span class=\"lang:c++ highlight:0 decode:true  crayon-inline \">echo | cpp -fopenmp -dM | grep -i open<\/span><\/p>\n<p>You may see one of these.<\/p>\n<ul>\n<li>200505 = version 2.5<\/li>\n<li>200805 = version 3.0<\/li>\n<li>201107 = version 3.1<\/li>\n<li>201307 = version 4.0<\/li>\n<li>201511 = verison 4.5<\/li>\n<\/ul>\n<p>Or trying to make a complete code with Makefile with my source: <a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/09\/omptest.zip\">omptest<\/a><\/p>\n<p>Extract omptest.zip to anywhere able to approach with bash (or MSYS, MinGW shell too), then move to position where you been extract.<\/p>\n<p>Just type make. A test named executabled binary (or test.exe if your system is Windows) may genertated, then jsut run it.<\/p>\n<p>You may see what version of OpenMP supported by your gcc compiler.<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/09\/openmp_test_result.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1426\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/09\/openmp_test_result.png\" alt=\"\" width=\"431\" height=\"52\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s some easy way to know my gcc support what version of OpenMP in compiling level. First, type this to your shell ( not Windows ) echo | cpp -fopenmp -dM | grep -i open You may see one of these. 200505 = version 2.5 200805 = version 3.0 201107&#8230; <a href=\"https:\/\/rageworx.info\/?p=1423\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[534,535],"class_list":["post-1423","post","type-post","status-publish","format-standard","hentry","category-development","category-raphs","tag-gcc","tag-openmp"],"_links":{"self":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1423"}],"version-history":[{"count":0,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1423\/revisions"}],"wp:attachment":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}