擅长:python、mysql、java
<p>如果使用PyTorch,可以尝试<code>locate nccl| grep "libnccl.so" | tail -n1 | sed -r 's/^.*\.so\.//'</code>或<code>torch.cuda.nccl.version()</code></p>
<p>检查此链接<a href="https://tech.amikelive.com/node-841/command-cheatsheet-checking-versions-of-installed-software-libraries-tools-for-deep-learning-on-ubuntu-16-04/" rel="nofollow noreferrer">Command Cheatsheet: Checking Versions of Installed Software / Libraries / Tools for Deep Learning on Ubuntu</a></p>
<p>对于有时没有<code>locate</code>可用的容器,可以将其替换为<code>ldconfig -v</code>:
<code>ldconfig -v | grep "libnccl.so" | tail -n1 | sed -r 's/^.*\.so\.//'</code></p>