xref: /libCEED/rust/libceed-sys/c-src/backends/magma/ceed-magma-gemm-selector.h (revision 5aed82e4fa97acf4ba24a7f10a35f5303a6798e0)
1*5aed82e4SJeremy L Thompson // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2940a72f1SSebastian Grimberg // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3940a72f1SSebastian Grimberg //
4940a72f1SSebastian Grimberg // SPDX-License-Identifier: BSD-2-Clause
5940a72f1SSebastian Grimberg //
6940a72f1SSebastian Grimberg // This file is part of CEED:  http://github.com/ceed
7940a72f1SSebastian Grimberg 
8940a72f1SSebastian Grimberg #ifndef CEED_MAGMA_GEMM_SELECTOR_H
9940a72f1SSebastian Grimberg #define CEED_MAGMA_GEMM_SELECTOR_H
10940a72f1SSebastian Grimberg 
11940a72f1SSebastian Grimberg #include "ceed-magma.h"
12940a72f1SSebastian Grimberg 
13940a72f1SSebastian Grimberg ////////////////////////////////////////////////////////////////////////////////
14940a72f1SSebastian Grimberg CEED_INTERN void gemm_selector(int gpu_arch, char precision, char trans_A, int m, int n, int k, int *n_batch, int *use_magma);
15940a72f1SSebastian Grimberg 
16940a72f1SSebastian Grimberg ////////////////////////////////////////////////////////////////////////////////
177c7f2ed8SSebastian Grimberg CEED_INTERN CeedInt nontensor_rtc_get_nb(int gpu_arch, char trans_A, int q_comp, int P, int Q, int N);
18940a72f1SSebastian Grimberg 
19940a72f1SSebastian Grimberg #endif  // CEED_MAGMA_GEMM_SELECTOR_H
20