<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I asked about the last scenario in Slack, but the discussion is unfortunately lost. My recollection was that this sentence on pg 509, ln 26-27:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> The substrings that indicate support for these memory allocation kinds must be identical to those supplied by the user.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">means that you cannot _<i>only</i>_ return “rocm” when the request was for “rocm:device”. MPICH will return both “rocm,rocm:device” for such a request.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Ken</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<b><span style="color:black">From: </span></b><span style="color:black">mpiwg-hybridpm <mpiwg-hybridpm-bounces@lists.mpi-forum.org> on behalf of Edgar Gabriel via mpiwg-hybridpm <mpiwg-hybridpm@lists.mpi-forum.org><br>
<b>Date: </b>Wednesday, January 29, 2025 at 11:55</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b>Hybrid working group mailing list <mpiwg-hybridpm@lists.mpi-forum.org><br>
<b>Cc: </b>Edgar Gabriel <edgar.gabriel1@outlook.com><br>
<b>Subject: </b>[mpiwg-hybridpm] mpi_memory_alloc_kinds questions/clarifications</span></p>
</div>
<div id="mail-editor-reference-message-container">
<div>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">More relevant however is potentially something else. When user requests e.g. with
</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> mpiexec -mpi-memory-alloc-kinds system,mpi,rocm:device -np 32 …</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">the MPI library is allowed to return more memory types than requested by the user, e.g. it would be valid for mpi_memory_alloc_kinds info to contain</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> mpi,system,rocm:device,rocm:host,rocm:managed</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">or</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> mpi,system,rocm</span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif"> </span></p>
<p class="MsoListParagraph" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">which is equivalent in my understanding, since device,host,and managed are all the memory types supported by the rocm memkind, and supporting all three of them
is equivalent to not providing any restrictors. Our examples in the side document could not handle that however, what we would need to do e.g. for the rocm testcase would be something like</span></p>
</div>
</div>
</div>
</div>
</body>
</html>