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
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/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-04-30T18:14:50+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="#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="line8"> 8: </a><font color="#A020F0"> #error using both nvcc and hipcc at the same time?</font>
<a name="line9"> 9: </a><font color="#A020F0">#endif</font>
<a name="line11"> 11: </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="line12"> 12: </a><strong><font color="#228B22"> #define PETSC_HAVE_CUPM 1</font></strong>
<a name="line13"> 13: </a><font color="#A020F0">#endif</font>
<a name="line15"> 15: </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="line16"> 16: </a><strong><font color="#228B22"> #define PETSC_USING_CUPMCC 1</font></strong>
<a name="line17"> 17: </a><font color="#A020F0">#endif</font>
</pre>
</body>
</html>
|