<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Kenneth,</p>
<p><br>
</p>
<p>applying this patch made mpich build successful. Thanks a lot!!</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Sam<br>
</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> Raffenetti, Kenneth J. <raffenet@mcs.anl.gov><br>
<b>Sent:</b> Wednesday, June 2, 2021 11:04:28 PM<br>
<b>To:</b> discuss@mpich.org<br>
<b>Cc:</b> Omlin Samuel<br>
<b>Subject:</b> Re: [mpich-discuss] Building CUDA-aware MPICH fails on Ubuntu 20.04</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Omlin,<br>
<br>
This is a known issue that was fixed but unfortunately not included in MPICH 3.4.2. A workaround would be to change /bin/sh to link to /bin/bash on your system. Or you could apply this patch to /home/omlins/soft/mpich-3.4.2/modules/yaksa/src/backend/cuda/cudalt.sh:<br>
<br>
<a href="https://github.com/pmodels/yaksa/pull/181/commits/eed193d9775dd0f33cbd8caa0dd946647b751b18">
https://github.com/pmodels/yaksa/pull/181/commits/eed193d9775dd0f33cbd8caa0dd946647b751b18</a><br>
<br>
Ken<br>
<br>
On 6/2/21, 12:54 PM, "Omlin Samuel via discuss" <discuss@mpich.org> wrote:<br>
<br>
Dear all,<br>
<br>
Building CUDA-aware MPICH fails for me after a few seconds on Ubuntu 20.04 following the MPICH installation guide (CUDA Driver Version: 465.19.01,<br>
CUDA Version: 11.3).<br>
<br>
Reproducer:<br>
mkdir ~/soft<br>
cd ~/soft<br>
tar -xzf mpich-3.4.2.tar.gz<br>
mkdir /tmp/mpich-3.4.2<br>
cd /tmp/mpich-3.4.2<br>
~/soft/mpich-3.4.2/configure --with-cuda=/usr/local/cuda --with-device=ch4:ucx 2>&1 | tee configure.log<br>
make 2>&1 | tee make.log<br>
<br>
<br>
Error:<br>
/home/omlins/soft/mpich-3.4.2/modules/yaksa/src/backend/cuda/cudalt.sh: 35: Bad substitution<br>
make[2]: *** [Makefile:8697: src/backend/cuda/pup/yaksuri_cudai_pup_hvector__Bool.lo] Error 2<br>
make[2]: Leaving directory '/tmp/mpich-3.4.2/modules/yaksa'<br>
make[1]: *** [Makefile:43560: all-recursive] Error 1<br>
make[1]: Leaving directory '/tmp/mpich-3.4.2'<br>
make: *** [Makefile:11141: all] Error 2<br>
<br>
<br>
<br>
The with tee created log files 'configure.log' and 'make.log', as well as 'config.log', are attached.<br>
<br>
Am I missing something or is there an issue with MPICH here?<br>
<br>
<br>
<br>
Thanks a lot in advance for helping me solving this issue!<br>
<br>
Cheers,<br>
<br>
Sam<br>
<br>
<br>
--<br>
Samuel Omlin, PhD<br>
Computational Scientist<br>
CSCS - Swiss National Supercomputing Centre<br>
ETH Zurich<br>
Via Trevano 131<br>
CH-6900 Lugano<br>
Switzerland<br>
<br>
</div>
</span></font>
</body>
</html>