xref: /libCEED/backends/magma/ceed-magma-common.h (revision 5aed82e4fa97acf4ba24a7f10a35f5303a6798e0)
1 // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3 //
4 // SPDX-License-Identifier: BSD-2-Clause
5 //
6 // This file is part of CEED:  http://github.com/ceed
7 
8 #ifndef CEED_MAGMA_COMMON_H
9 #define CEED_MAGMA_COMMON_H
10 
11 #include <ceed.h>
12 #include <ceed/backend.h>
13 #include <magma_v2.h>
14 
15 typedef struct {
16   magma_device_t device_id;
17   magma_queue_t  queue;
18 } Ceed_Magma;
19 
20 CEED_INTERN int CeedInit_Magma_common(Ceed ceed, const char *resource);
21 
22 CEED_INTERN int CeedDestroy_Magma(Ceed ceed);
23 
24 #endif  // CEED_MAGMA_COMMON_H
25