 |
Ginkgo
Generated from pipelines/2837190956 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
5 #ifndef GKO_PUBLIC_CORE_BASE_VERSION_HPP_
6 #define GKO_PUBLIC_CORE_BASE_VERSION_HPP_
11 #include <ginkgo/config.hpp>
12 #include <ginkgo/core/base/types.hpp>
50 const char*
const tag;
53 inline bool operator==(
const version& first,
const version& second)
59 inline bool operator!=(
const version& first,
const version& second)
61 return !(first == second);
64 inline bool operator<(
const version& first,
const version& second)
66 if (first.major < second.major)
return true;
67 if (first.major == second.major && first.minor < second.minor)
return true;
68 if (first.major == second.major && first.minor == second.minor &&
69 first.patch < second.patch)
74 inline bool operator<=(
const version& first,
const version& second)
76 return !(second < first);
79 inline bool operator>(
const version& first,
const version& second)
81 return second < first;
84 inline bool operator>=(
const version& first,
const version& second)
86 return !(first < second);
89 #undef GKO_ENABLE_VERSION_COMPARISON
100 inline std::ostream& operator<<(std::ostream& os,
const version& ver)
104 os <<
" (" << ver.
tag <<
")";
193 static constexpr
version get_header_version() noexcept
195 return version{GKO_VERSION_MAJOR, GKO_VERSION_MINOR, GKO_VERSION_PATCH,
199 static version get_core_version() noexcept;
201 static
version get_reference_version() noexcept;
203 static
version get_omp_version() noexcept;
205 static
version get_cuda_version() noexcept;
207 static
version get_hip_version() noexcept;
209 static
version get_dpcpp_version() noexcept;
231 std::ostream& operator<<(std::ostream& os,
const version_info& ver_info);
237 #endif // GKO_PUBLIC_CORE_BASE_VERSION_HPP_
const uint64 minor
The minor version number.
Definition: version.hpp:38
version core_version
Contains version information of the core library.
Definition: version.hpp:154
const char *const tag
Addition tag string that describes the version in more detail.
Definition: version.hpp:50
version dpcpp_version
Contains version information of the DPC++ module.
Definition: version.hpp:190
version reference_version
Contains version information of the reference module.
Definition: version.hpp:162
const uint64 patch
The patch version number.
Definition: version.hpp:43
version omp_version
Contains version information of the OMP module.
Definition: version.hpp:169
version hip_version
Contains version information of the HIP module.
Definition: version.hpp:183
The Ginkgo namespace.
Definition: abstract_factory.hpp:19
static const version_info & get()
Returns an instance of version_info.
Definition: version.hpp:138
This structure is used to represent versions of various Ginkgo modules.
Definition: version.hpp:24
version header_version
Contains version information of the header files.
Definition: version.hpp:147
const uint64 major
The major version number.
Definition: version.hpp:33
Ginkgo uses version numbers to label new features and to communicate backward compatibility guarantee...
Definition: version.hpp:131
version cuda_version
Contains version information of the CUDA module.
Definition: version.hpp:176
std::uint64_t uint64
64-bit unsigned integral type.
Definition: types.hpp:147