<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The configure in yaksa will set correct <code>-ccbin</code>​ option for nvcc to use the
<code>compiler set by <code>CC</code>​. Reference <a href="https://github.com/pmodels/yaksa/blob/e4063c04b6ceeda7d863449a4e92124feb5b739a/src/backend/cuda/subconfigure.m4#L65-L70" id="LPlnkOWALinkPreview">
https://github.com/pmodels/yaksa/blob/e4063c04b6ceeda7d863449a4e92124feb5b739a/src/backend/cuda/subconfigure.m4#L65-L70</a><br>
</code></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<code>Ideally, it should use <code>CXX</code>​ rather than <code>CC</code>. But it currently works to compile the cu files in yaksa.</code></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<code>-- <br>
</code></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<code>Hui </code><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL3Btb2RlbHMveWFrc2EvYmxvYi9lNDA2M2MwNGI2Y2VlZGE3ZDg2MzQ0OWE0ZTkyMTI0ZmViNWI3MzlhL3NyYy9iYWNrZW5kL2N1ZGEvc3ViY29uZmlndXJlLm00I0w2NS1MNzA." class="LPBorder185422" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer185422" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td>
<div id="LPImageContainer185422" style="position: relative; margin-right: 12px; height: 120px; overflow: hidden; width: 240px;">
<a target="_blank" id="LPImageAnchor185422" href="https://github.com/pmodels/yaksa/blob/e4063c04b6ceeda7d863449a4e92124feb5b739a/src/backend/cuda/subconfigure.m4#L65-L70"><img id="LPThumbnailImageId185422" alt="" style="display: block;" width="240" height="120" src="https://opengraph.githubassets.com/23e05374cb64ce76ccf37f70c107678c6cd0fc7bb14a3965eaf36fced39609a5/pmodels/yaksa"></a></div>
</td>
<td style="width: 100%;">
<div id="LPTitle185422" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: "wf_segoe-ui_light", "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor185422" href="https://github.com/pmodels/yaksa/blob/e4063c04b6ceeda7d863449a4e92124feb5b739a/src/backend/cuda/subconfigure.m4#L65-L70" style="text-decoration: none; color: var(--themePrimary);">yaksa/subconfigure.m4 at e4063c04b6ceeda7d863449a4e92124feb5b739a
 · pmodels/yaksa</a></div>
<div id="LPDescription185422" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
Yaksa: High-performance Noncontiguous Data Management - yaksa/subconfigure.m4 at e4063c04b6ceeda7d863449a4e92124feb5b739a · pmodels/yaksa</div>
<div id="LPMetadata185422" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
github.com</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Raffenetti, Ken <raffenet@anl.gov><br>
<b>Sent:</b> Friday, April 15, 2022 3:02 PM<br>
<b>To:</b> discuss@mpich.org <discuss@mpich.org><br>
<b>Cc:</b> Zhou, Hui <zhouh@anl.gov><br>
<b>Subject:</b> Re: [mpich-discuss] CUDA support with clang instead of nvcc</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">The Yaksa configure is currently hardcoded to use `nvcc` for .cu files. We'll have to patch it to support alternatives, right?<br>
<br>
Ken<br>
<br>
On 4/15/22, 2:57 PM, "Zhou, Hui via discuss" <discuss@mpich.org> wrote:<br>
<br>
    Yes, just set CC=clang​ and CXX=clang++​.<br>
<br>
    -- <br>
<br>
    Hui Zhou<br>
<br>
    ________________________________________<br>
    From: Sajid Ali via discuss <discuss@mpich.org><br>
    Sent: Friday, April 15, 2022 11:49 AM<br>
    To: discuss@mpich.org <discuss@mpich.org><br>
    Cc: Sajid Ali <sajidsyed2021@u.northwestern.edu><br>
    Subject: [mpich-discuss] CUDA support with clang instead of nvcc  <br>
<br>
    Hi MPICH-developers, <br>
<br>
<br>
    Is it possible to compile MPICH with CUDA awareness, but with clang as the CUDA compiler? (i.e. use clang capable of targeting the nvptx backend to compiler cuda files instead of nvcc).<br>
<br>
    Thank You,<br>
    Sajid Ali (he/him) | Research Associate<br>
<br>
    Scientific Computing Division<br>
<br>
    Fermi National Accelerator Laboratory<br>
<br>
    s-sajid-ali.github.io <<a href="http://s-sajid-ali.github.io">http://s-sajid-ali.github.io</a>><br>
<br>
</div>
</span></font></div>
</body>
</html>