{"id":412,"date":"2018-11-29T20:14:42","date_gmt":"2018-11-29T20:14:42","guid":{"rendered":"http:\/\/phylanx.stellar-group.org\/?p=412"},"modified":"2018-11-29T20:21:02","modified_gmt":"2018-11-29T20:21:02","slug":"compiling-and-running-blazemark","status":"publish","type":"post","link":"https:\/\/phylanx.stellar-group.org\/index.php\/2018\/11\/29\/compiling-and-running-blazemark\/","title":{"rendered":"Compiling and Running Blazemark"},"content":{"rendered":"<p>By Shahrzad Shirzad<\/p>\n<p><a href=\"https:\/\/bitbucket.org\/blaze-lib\/blaze\/wiki\/Blazemark\" target=\"_blank\">Blazemark<\/a> is the benchmark suite for <a href=\"https:\/\/bitbucket.org\/blaze-lib\/blaze\/src\/master\/\" target=\"_blank\">Blaze<\/a> library. In order to compile and run Blazemark with HPX backend, take the following steps:<!--more--><\/p>\n<ol>\n<li>Change the Configfile at <em>blaze\/blazemark<\/em> by filling in the <em>CXX=<\/em>, <em>CXXFLAGS=<\/em>, <em>LIBRARY_DIRECTIVES=<\/em> fields in the Configfile:<br \/>\nThis is an example of the configurations used for Clang:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:700px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/><\/div><\/td><td><div class=\"text codecolorer\"># Compiler selection<br \/>\nCXX=&quot;clang++&quot;<br \/>\n# Special compiler flags<br \/>\nCXXFLAGS=&quot;-O3 -march=native -std=c++17 -stdlib=libc++ -DNDEBUG -fpermissive -DBLAZE_USE_HPX_THREADS -isystem \/hpx\/install\/path\/include -Wl,-wrap=main&quot;<br \/>\n# Library settings (optional)<br \/>\n# In some cases it might be necessary to specify additional library paths and add additional<br \/>\n# libraries. This can be done via this setting.<br \/>\nLIBRARY_DIRECTIVES=&quot;-L\/hpx\/install\/path\/lib\/ -lhpx -rdynamic \/hpx\/install\/path\/lib\/libhpx_init.a -ldl -lrt -lhpx_wrap - L\/boost\/install\/path\/lib -lboost_system -lboost_program_options&quot;<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<\/li>\n<li>.\/configure Configfile<\/li>\n<li>make benchmark_name<\/li>\n<li>.\/bin\/benchmark_name<\/li>\n<\/ol>\n<p>Notes:<\/p>\n<ul>\n<li>You can change vector or matrix sizes to run the benchmark on through the benchmark_name.prm file located at <em>\/blaze\/blazemark\/params<\/em> folder.<\/li>\n<\/ul>\n<p>For more information on available benchmarks, command line parameters, and also the list of supported libraries please visit <a href=\"https:\/\/bitbucket.org\/blaze-lib\/blaze\/wiki\/Blazemark\" target=\"_blank\">Blazemark.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Shahrzad Shirzad Blazemark is the benchmark suite for Blaze library. In order to compile and run Blazemark with HPX backend, take the following steps: <a class=\"continue-reading-link\" href=\"https:\/\/phylanx.stellar-group.org\/index.php\/2018\/11\/29\/compiling-and-running-blazemark\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[25,20,27,5],"_links":{"self":[{"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/posts\/412"}],"collection":[{"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":3,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":415,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/posts\/412\/revisions\/415"}],"wp:attachment":[{"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phylanx.stellar-group.org\/index.php\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}