xref: /libCEED/backends/magma/ceed-magma-common.h (revision 6eb06d7cb0f5787c494a4969c0aa6769f3bcfbd0)
1 // Copyright (c) 2017-2025, 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 #pragma once
8 
9 #include <ceed.h>
10 #include <ceed/backend.h>
11 #include <magma_v2.h>
12 
13 typedef struct {
14   magma_device_t device_id;
15   magma_queue_t  queue;
16 } Ceed_Magma;
17 
18 CEED_INTERN int CeedInit_Magma_common(Ceed ceed, const char *resource);
19 
20 CEED_INTERN int CeedDestroy_Magma(Ceed ceed);
21