<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=2299&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Configuring CUDA support]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=2299</link>
		<description><![CDATA[The most recent posts in [SOLVED] Configuring CUDA support.]]></description>
		<lastBuildDate>Fri, 07 Sep 2018 16:26:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11690#p11690</link>
			<description><![CDATA[<p>I&#039;ve found out a bit more. Adding --verbose to nvcc&#039;s parms makes it print the commands it runs to invoke lower level programs that do the work. Comparing what it does when called with <span class="bbc">-ccbin clang</span> and with <span class="bbc">-ccbin clang-3.8</span> the only significant difference is the last line of output:</p><div class="codebox"><pre><code>#$ clang++ -fPIC -fvisibility=hidden -O3 -m64 -o &quot;sort_engine.so&quot; -Wl,--start-group &quot;/tmp/tmpxft_000002fc_00000000-18_sort_engine_dlink.o&quot; &quot;/tmp/tmpxft_000002fc_00000000-16_sort_engine.o&quot; -shared   -L/usr/lib/x86_64-linux-gnu/stubs -lcudadevrt  -lcudart_static  -lrt -lpthread  -ldl  -Wl,--end-group </code></pre></div><div class="codebox"><pre><code>#$ clang-3.8 -fPIC -fvisibility=hidden -O3 -m64 -o &quot;sort_engine.so&quot; -Wl,--start-group &quot;/tmp/tmpxft_0000029c_00000000-18_sort_engine_dlink.o&quot; &quot;/tmp/tmpxft_0000029c_00000000-16_sort_engine.o&quot; -shared   -L/usr/lib/x86_64-linux-gnu/stubs -lcudadevrt  -lcudart_static  -lrt -lpthread  -ldl  -Wl,--end-group </code></pre></div><p>It seems that when it calls clang++ the code works and when it calls clang-3.8 it fails. Which is reasonable if it&#039;s c++ code.</p><p>So I think it&#039;s nvcc that&#039;s going wrong. Not part of Devuan.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Fri, 07 Sep 2018 16:26:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11690#p11690</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11520#p11520</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;ve found that the CUDA programs I&#039;m using only work if complied with clang instead of clang-3.8. Which is surprising because they are the same program:</p><div class="codebox"><pre><code>chris@rigel:~$ which clang
/usr/bin/clang
chris@rigel:~$ which clang-3.8
/usr/bin/clang-3.8
chris@rigel:~$ ls -l /usr/bin/clang /usr/bin/clang-3.8
lrwxrwxrwx 1 root root 25 Apr 18  2017 /usr/bin/clang -&gt; ../lib/llvm-3.8/bin/clang
lrwxrwxrwx 1 root root 25 Jun  2  2017 /usr/bin/clang-3.8 -&gt; ../lib/llvm-3.8/bin/clang</code></pre></div><p>Comparing two test cases (test4 fails, test3 works):</p><div class="codebox"><pre><code>chris@rigel:~/msieve-svn1022.test4/trunk/cub$ diff Makefile ~/msieve-svn1022.test3/trunk/cub/Makefile 
20c20
&lt; 			-ccbin clang-3.8 -Xcompiler -fPIC -Xcompiler -fvisibility=hidden
---
&gt; 			-ccbin clang -Xcompiler -fPIC -Xcompiler -fvisibility=hidden</code></pre></div><div class="codebox"><pre><code>chris@rigel:~/msieve-svn1022.test4/trunk/cub$ ldd sort_engine.so 
	linux-vdso.so.1 (0x00007ffc90ffe000)
	librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa9cf8d2000)
	libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa9cf6b5000)
	libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa9cf4b1000)
	libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa9cf29a000)
	libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa9ceefb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fa9cfe30000)</code></pre></div><div class="codebox"><pre><code>chris@rigel:~/msieve-svn1022.test3/trunk/cub$ ldd sort_engine.so 
	linux-vdso.so.1 (0x00007ffd177ef000)
	librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007f47b6618000)
	libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f47b63fb000)
	libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f47b61f7000)
	libstdc++.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f47b5e75000)
	libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f47b5b71000)
	libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f47b595a000)
	libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f47b55bb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f47b6b76000)</code></pre></div><p>The error message is:</p><div class="codebox"><pre><code>cannot load library &#039;/home/chris/msieve-svn1022.cuda/trunk/cub/sort_engine.so&#039;: /home/chris/msieve-svn1022.cuda/trunk/cub/sort_engine.so: undefined symbol: _ZNSt8ios_base4InitD1Ev</code></pre></div><p>So why does compiling with clang-3.8 produce different output from compiling with clang?</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 27 Aug 2018 08:09:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11520#p11520</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11377#p11377</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>I&#039;ve managed to get gmp-ecm GPU support working by recompiling it all with clang. See <a href="http://mersenneforum.org/showthread.php?t=23561" rel="nofollow">http://mersenneforum.org/showthread.php?t=23561</a> post 10.</p></div></blockquote></div><p>Thanks for posting the fix.&#160; Seems no one on this forum has played with CUDA.</p><div class="quotebox"><blockquote><div><p>So this issue is solved. How do I set the topic to say that?</p><p>Chris</p></div></blockquote></div><p>To mark the topic as [SOLVED], edit the subject in your first post.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Fri, 17 Aug 2018 17:38:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11377#p11377</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11372#p11372</link>
			<description><![CDATA[<p>I&#039;ve managed to get gmp-ecm GPU support working by recompiling it all with clang. See <a href="http://mersenneforum.org/showthread.php?t=23561" rel="nofollow">http://mersenneforum.org/showthread.php?t=23561</a> post 10.</p><p>So this issue is solved. How do I set the topic to say that?</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Fri, 17 Aug 2018 16:54:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11372#p11372</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11335#p11335</link>
			<description><![CDATA[<p>Upgrading the OS from 4.9.0-6-amd64 to 4.9.0-7-amd64 fixed the driver problems. Now nvidia-smi works OK.</p><p>Testing nvcc I found it won&#039;t work with gcc 6.3.0. But it will work with clang 3.8 (and probably 3.9 or 4.0).</p><p>Now all I need to do is to get the apps I want to run under CUDA to work.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Wed, 15 Aug 2018 17:06:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11335#p11335</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11310#p11310</link>
			<description><![CDATA[<p>Hello,</p><p>Has anyone managed to get CUDA working on Devuan? If I can&#039;t get it working I&#039;ll reluctantly have to switch to another Linux distribution.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Tue, 14 Aug 2018 15:53:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11310#p11310</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Configuring CUDA support]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11237#p11237</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m trying to get CUDA working on a system running Devuan. The GPU should support it:</p><div class="codebox"><pre><code>$ nvidia-detect 
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF104 [GeForce GTX 460] [10de:0e22] (rev a1)

Checking card:  NVIDIA Corporation GF104 [GeForce GTX 460] (rev a1)
Your card is supported by all driver versions.
It is recommended to install the
    nvidia-driver
package.</code></pre></div><p>nvidia-driver version 384.130-1 is installed.</p><p>But something seems to be missing:</p><div class="codebox"><pre><code># nvidia-smi
NVIDIA-SMI has failed because it couldn&#039;t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.</code></pre></div><p>When rebooting the system I got messages about nvidia-current-modeset and nvidia-current-drm not being in /lib/modules/4.9.0-6-amd64 (I had to pause the boot with control-S, write them down, then control-Q to continue the boot). Similar messages come from:</p><div class="codebox"><pre><code># modprobe nvidia
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/4.9.0-6-amd64
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert &#039;nvidia&#039;: Operation not permitted</code></pre></div><p>What packages provide nvidia-current-modeset and nvidia-current-drm?</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 11 Aug 2018 14:13:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11237#p11237</guid>
		</item>
	</channel>
</rss>
