1 // Copyright (c) 2017-2022, 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