<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Portabler paralleler Code?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich verwende in meinem Code teilweise sowas in der Form (nur ein Beispiel, dass das keinen Sinn ergibt weiß ich):</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;ppl.h&gt;

int main() {
	concurrency::parallel_for(size_t(0), size_t(10), [](size_t i) {
		std::cout &lt;&lt; i &lt;&lt; '\n';
	});
}
</code></pre>
<p>Mein Problem ist jetzt, dass das ja nicht portabel ist, da es auf der Microsoft spezifischen library &quot;ppl.h&quot; basiert, die nur für Windows verfügbar ist.</p>
<p>Ich weiß dass es nocht die &quot;thread building blocks&quot; library gibt, welche portabel ist, allerdings hat die eine relativ restriktive Lizenz.</p>
<p>Ich brauche eigentlich nur eine parallel_for Schleife, sonst nichts. Gibt es das irgendwo portabel, effizient <em>und</em> frei verfügbar?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/330442/portabler-paralleler-code</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 11:35:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/330442.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jan 2015 13:56:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 13:56:10 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich verwende in meinem Code teilweise sowas in der Form (nur ein Beispiel, dass das keinen Sinn ergibt weiß ich):</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;ppl.h&gt;

int main() {
	concurrency::parallel_for(size_t(0), size_t(10), [](size_t i) {
		std::cout &lt;&lt; i &lt;&lt; '\n';
	});
}
</code></pre>
<p>Mein Problem ist jetzt, dass das ja nicht portabel ist, da es auf der Microsoft spezifischen library &quot;ppl.h&quot; basiert, die nur für Windows verfügbar ist.</p>
<p>Ich weiß dass es nocht die &quot;thread building blocks&quot; library gibt, welche portabel ist, allerdings hat die eine relativ restriktive Lizenz.</p>
<p>Ich brauche eigentlich nur eine parallel_for Schleife, sonst nichts. Gibt es das irgendwo portabel, effizient <em>und</em> frei verfügbar?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436834</guid><dc:creator><![CDATA[happystudent]]></dc:creator><pubDate>Sat, 10 Jan 2015 13:56:10 GMT</pubDate></item><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 13:59:33 GMT]]></title><description><![CDATA[<p>happystudent schrieb:</p>
<blockquote>
<p>Ich brauche eigentlich nur eine parallel_for Schleife, sonst nichts.</p>
</blockquote>
<p>Selber schreiben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436835</guid><dc:creator><![CDATA[selfistheman]]></dc:creator><pubDate>Sat, 10 Jan 2015 13:59:33 GMT</pubDate></item><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 14:47:19 GMT]]></title><description><![CDATA[<p>happystudent schrieb:</p>
<blockquote>
<p>Ich weiß dass es nocht die &quot;thread building blocks&quot; library gibt, welche portabel ist, allerdings hat die eine relativ restriktive Lizenz.</p>
</blockquote>
<p>Was meinst du mit retriktiv?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436840</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Sat, 10 Jan 2015 14:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 15:21:22 GMT]]></title><description><![CDATA[<p>selfistheman schrieb:</p>
<blockquote>
<p>Selber schreiben?</p>
</blockquote>
<p>Ja, hab das bis jetzt halt immer nur benutzt und mir keine Gedanken gemacht wie das im Hintergrund läuft...</p>
<p>Ich würde das jetzt einfach so machen:</p>
<pre><code>#include &lt;iostream&gt;

int main() {

#pragma omp parallel for
	for (int i = 0; i &lt; 10; i++) {
		std::cout &lt;&lt; i &lt;&lt; '\n';
	}
}
</code></pre>
<p>Aber ist das wirklich so einfach? Weil der &lt;ppl.h&gt; Code von MS ist schon sehr komplex und schwer zu durchschauen, daher bin ich mir jetzt unsicher ...</p>
<p>manni66 schrieb:</p>
<blockquote>
<p>Was meinst du mit retriktiv?</p>
</blockquote>
<p>Naja, soweit ich die Lizenz verstanden habe, darf man die nicht in proprietärer Software einsetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436842</guid><dc:creator><![CDATA[happystudent]]></dc:creator><pubDate>Sat, 10 Jan 2015 15:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 16:15:08 GMT]]></title><description><![CDATA[<p>happystudent schrieb:</p>
<blockquote>
<p>manni66 schrieb:</p>
<blockquote>
<p>Was meinst du mit retriktiv?</p>
</blockquote>
<p>Naja, soweit ich die Lizenz verstanden habe, darf man die nicht in proprietärer Software einsetzen.</p>
</blockquote>
<p>Doch darf man, da GPL mit runtime exception.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436845</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Sat, 10 Jan 2015 16:15:08 GMT</pubDate></item><item><title><![CDATA[Reply to Portabler paralleler Code? on Sat, 10 Jan 2015 19:47:32 GMT]]></title><description><![CDATA[<p>manni66 schrieb:</p>
<blockquote>
<p>Doch darf man, da GPL mit runtime exception.</p>
</blockquote>
<p>Hm achso, dann hab ich das tatsächlich falsch verstanden... Ok, dann werd ich wohl TBB nehmen, Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2436884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2436884</guid><dc:creator><![CDATA[happystudent]]></dc:creator><pubDate>Sat, 10 Jan 2015 19:47:32 GMT</pubDate></item></channel></rss>