Ginkgo
Generated from branch based on master. Ginkgo version 1.7.0
A numerical linear algebra library targeting many-core architectures
Loading...
Searching...
No Matches
ginkgo
core
base
fwd_decls.hpp
1
/*******************************<GINKGO LICENSE>******************************
2
Copyright (c) 2017-2023, the Ginkgo authors
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions
7
are met:
8
9
1. Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
12
2. Redistributions in binary form must reproduce the above copyright
13
notice, this list of conditions and the following disclaimer in the
14
documentation and/or other materials provided with the distribution.
15
16
3. Neither the name of the copyright holder nor the names of its
17
contributors may be used to endorse or promote products derived from
18
this software without specific prior written permission.
19
20
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
******************************<GINKGO LICENSE>*******************************/
32
33
#ifndef GKO_PUBLIC_CORE_BASE_FWD_DECLS_HPP_
34
#define GKO_PUBLIC_CORE_BASE_FWD_DECLS_HPP_
35
36
37
#include <ginkgo/config.hpp>
38
39
40
struct
cublasContext;
41
42
struct
cusparseContext;
43
44
struct
CUstream_st;
45
46
struct
CUevent_st;
47
48
struct
hipblasContext;
49
50
struct
hipsparseContext;
51
52
#if GINKGO_HIP_PLATFORM_HCC
53
struct
ihipStream_t;
54
struct
ihipEvent_t;
55
#define GKO_HIP_STREAM_STRUCT ihipStream_t
56
#define GKO_HIP_EVENT_STRUCT ihipEvent_t
57
#else
58
#define GKO_HIP_STREAM_STRUCT CUstream_st
59
#define GKO_HIP_EVENT_STRUCT CUevent_st
60
#endif
61
62
63
// after intel/llvm September'22 release, which uses major version 6, they
64
// introduce another inline namespace _V1.
65
#if GINKGO_DPCPP_MAJOR_VERSION >= 6
66
namespace
sycl {
67
inline
namespace
_V1 {
68
69
70
class
queue;
71
class
event;
72
73
74
}
// namespace _V1
75
}
// namespace sycl
76
#else
// GINKGO_DPCPP_MAJOR_VERSION < 6
77
inline
namespace
cl {
78
namespace
sycl {
79
80
81
class
queue;
82
class
event;
83
84
85
}
// namespace sycl
86
}
// namespace cl
87
#endif
88
89
90
#endif
// GKO_PUBLIC_CORE_BASE_FWD_DECLS_HPP_
Generated by
1.10.0