forked from starpu-runtime/starpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstarpu_hipblas.h
63 lines (53 loc) · 1.63 KB
/
starpu_hipblas.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* StarPU is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
#ifndef __STARPU_HIPBLAS_H__
#define __STARPU_HIPBLAS_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
@ingroup API_HIP_Extensions
@{
*/
/**
Initialize HIPBLAS on every HIPdevice. The
HIPBLAS library must be initialized prior to any HIPBLAS call. Calling
starpu_hipblas_init() will initialize HIPBLAS on every HIP device
controlled by StarPU. This call blocks until HIPBLAS has been properly
initialized on every device.
*/
void starpu_hipblas_init(void);
#ifdef STARPU_USE_HIP
#ifndef STARPU_USE_HIPBLAS
typedef void* hipblasHandle_t;
#endif
/**
Return the HIPBLAS handle to be used to queue HIPBLAS kernels. It
is properly initialized and configured for multistream by
starpu_hipblas_init().
*/
hipblasHandle_t starpu_hipblas_get_local_handle(void);
#endif
/**
Synchronously deinitialize the HIPBLAS library on
every HIP device.
*/
void starpu_hipblas_shutdown(void);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_HIPBLAS_H__ */