<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=utf-8">
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
{font-family:Wingdings}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
{color:blue;
text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
{margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
.x_MsoChpDefault
{}
@page WordSection1
{margin:70.85pt 56.7pt 70.85pt 56.7pt}
div.x_WordSection1
{}
ol
{margin-bottom:0in}
ul
{margin-bottom:0in}
-->
</style>
<div lang="EN-US" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I see basically three use cases for PyTorch (and similar libraries) on CPU:</p>
<ul type="disc" style="margin-top:0in">
<li class="x_MsoListParagraph" style="margin-left:0in">Rapid prototyping and testing (without having to use SLURM scripts). Using a combination of direct running on login nodes (I know, you CSC guys don’t like that…) and gputest queue should do the trick here.</li><li class="x_MsoListParagraph" style="margin-left:0in">Teaching: it would be nice if students could run PyTorch directly from taito-shell, as they are used to for other things. This is low-priority as we don’t use PyTorch for teaching at the moment, but may
do so in the near future.</li><li class="x_MsoListParagraph" style="margin-left:0in">The most important point, though, is that running PyTorch on CPU allows us to benefit from the shorter queues on these nodes and from the “cheaper” billing. In machine translation for example, training
new models requires GPU, but using these models to translate text usually doesn’t benefit that much from GPU. In these cases, we have often switched to CPU mode. These are typically very long runs for which the current GPU billing scheme is a bit prohibitive.
(I have even been told by one of the CSC guys once that I wasn’t efficiently using GPU and should therefore switch to CPU instead. This was not with PyTorch, but in a similar setting with Theano.)</li></ul>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Best,</p>
<p class="x_MsoNormal">Yves</p>
<p class="x_MsoNormal"> </p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Matthiesen <martin.matthiesen@csc.fi><br>
<b>Sent:</b> Friday, September 21, 2018 6:01:06 PM<br>
<b>To:</b> infrastructure<br>
<b>Cc:</b> Scherrer, Yves; Markus Koskela<br>
<b>Subject:</b> PyTorch on CPU</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello,<br>
<br>
I discussed CPU support for PyTorch with Markus today and he told me that PyTorch is working on a CPU-only environment. Case in point is the taito-gpu.csc.fi login node which does not have GPU hardware. It does not work on taito.csc.fi and it is a bit unclear
to us, why. There is a missing symbol, but ldd shows that all libraries (and the same ones as on taito-gpu) are found.<br>
<br>
I would like to still ask, why cpu-only support is important. I understood it is for rapid-prototyping, but would Taito-gpu's gputest queue[1] effectively achieve the same? The queue is meant for very short runs only (max 15 mins).<br>
<br>
Have a nice weekend!<br>
Martin<br>
<br>
[1] <a href="https://research.csc.fi/taito-gpu-running?inheritRedirect=true">https://research.csc.fi/taito-gpu-running?inheritRedirect=true</a><br>
<br>
-- <br>
Martin Matthiesen<br>
CSC - Tieteen tietotekniikan keskus<br>
CSC - IT Center for Science<br>
PL 405, 02101 Espoo, Finland<br>
+358 9 457 2376, martin.matthiesen@csc.fi<br>
Public key : <a href="https://pgp.mit.edu/pks/lookup?op=get&search=0x74B12876FD890704">
https://pgp.mit.edu/pks/lookup?op=get&search=0x74B12876FD890704</a><br>
Fingerprint: AA25 6F56 5C9A 8B42 009F BA70 74B1 2876 FD89 0704<br>
</div>
</span></font>
</body>
</html>