{"id":639,"date":"2017-11-30T21:49:49","date_gmt":"2017-11-30T20:49:49","guid":{"rendered":"http:\/\/hamsterhirn.de\/?p=639"},"modified":"2017-11-30T21:49:49","modified_gmt":"2017-11-30T20:49:49","slug":"compile-a-cuda-program-with-gcc-6","status":"publish","type":"post","link":"https:\/\/hamsterhirn.de\/index.php\/2017\/11\/compile-a-cuda-program-with-gcc-6\/","title":{"rendered":"compile a cuda program with gcc-6"},"content":{"rendered":"<p>If one experiences this example message while compiling:<br \/>\n<pre><code class=\"preserve-code-formatting\">\/usr\/local\/cuda\/include\/crt\/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!\n #error -- unsupported GNU version! gcc versions later than 6 are not supported!\n&nbsp;&nbsp;^~~~~<\/code><\/pre><\/p>\n<p>Try the flag CUDA_NVCC_FLAGS and set the gcc compiler to version 6:<br \/>\n<code class=\"preserve-code-formatting\">cmake -D CUDA_NVCC_FLAGS=&quot;-ccbin gcc-6&quot; .. &amp;&amp; make<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If one experiences this example message while compiling: \/usr\/local\/cuda\/include\/crt\/host_config.h:119:2: error: #error &#8212; unsupported GNU version! gcc versions later than 6 are not supported! #error &#8212; unsupported GNU version! gcc versions later than 6 are not supported! &nbsp;&nbsp;^~~~~ Try the flag CUDA_NVCC_FLAGS and set the gcc compiler to version 6: cmake -D CUDA_NVCC_FLAGS=&quot;-ccbin gcc-6&quot; .. &amp;&amp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[322,297,318,319,321,323,320],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-it","tag-cmake","tag-compile","tag-cuda","tag-gcc-6","tag-make","tag-source-code","tag-unsupported"],"_links":{"self":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/comments?post=639"}],"version-history":[{"count":1,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":640,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/posts\/639\/revisions\/640"}],"wp:attachment":[{"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/categories?post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hamsterhirn.de\/index.php\/wp-json\/wp\/v2\/tags?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}