1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/b522cb8c110832b61be366220eb7433134308289/include/petscdevice_cupm.h">Actual source code: petscdevice_cupm.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-10-29T18:33:44+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#A020F0">#pragma once</font>
<a name="line3"> 3: </a>#include <A href="../include/petscmacros.h.html"><petscmacros.h></A>
<a name="line4"> 4: </a>#include <A href="../include/petscdevice_cuda.h.html"><petscdevice_cuda.h></A>
<a name="line5"> 5: </a>#include <A href="../include/petscdevice_hip.h.html"><petscdevice_hip.h></A>
<a name="line7"> 7: </a><font color="#B22222">/* MANSEC = Sys */</font>
<a name="line9"> 9: </a><font color="#A020F0">#if <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(USING_HCC) && <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(USING_NVCC)</font>
<a name="line10"> 10: </a><font color="#A020F0"> #error using both nvcc and hipcc at the same time?</font>
<a name="line11"> 11: </a><font color="#A020F0">#endif</font>
<a name="line13"> 13: </a><font color="#A020F0">#if <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(HAVE_CUDA) || <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(HAVE_HIP)</font>
<a name="line14"> 14: </a><strong><font color="#228B22"> #define PETSC_HAVE_CUPM 1</font></strong>
<a name="line15"> 15: </a><font color="#A020F0">#endif</font>
<a name="line17"> 17: </a><font color="#A020F0">#if <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(USING_NVCC) || <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(USING_HCC)</font>
<a name="line18"> 18: </a><strong><font color="#228B22"> #define PETSC_USING_CUPMCC 1</font></strong>
<a name="line19"> 19: </a><font color="#A020F0">#endif</font>
</pre>
</body>
</html>
|