<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57829>57829</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Enabling Cuda disables math functions for long double
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
j8asic
</td>
</tr>
</table>
<pre>
Cuda does not have `long double`, but the standard requires math functions to accept the type. Libraries like {fmt} depend on this, https://github.com/fmtlib/fmt/issues/3106. The functions like `isfinite` should leave `long double` _host_ implementations available even when `CUDACC` is defined.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UMtu2zAQ_BrpsqggkbZsHXhI7OTUY3sOSHElbUqRCh8u8vdd2wjSokUBYvma2ZkdE-y7OhWrwQZM4EOGRV8Qqr51wc_8WoxDvlXiBKZkyAtCytpbHS1EfCsUmbfqvMBU_Jgp-AQ5gB5H3O7w_L5hA1_JRB2JwY5-sMDhcVpzdTiDxQ29heAZTOmqs-S8pUo-VOKZ10x5KaYZw8oX5jgy9wNXSqkgc55l1_YNfGO1Txd3nb6lNJGnfJ0C0hKKs-Dwn0PCyxJSfgFaN4cr-qzvnfRFk9OMAbygh58LF4afvp8fTqcrjxKPwSpomxpV1_eyF-1hJ2urpB3koOtM2aF68tyFWPIeOaVr07_im0KE34zVJTr1n0ycu3xsX7YYXnH8I5r94SiGelFDZ9EeOz3IVo577HZiZ3RnBmkGMWk51jwhuqSq_WO1P9ekRCtEO3SDaPdCyKY9SrNDZuM4CXOU1a7FlXNprsJNiHMd1c2DKXPiT0cpp89PnRLNHvGjvy55CVG9HnWisb65VTervwC-f9pN">