1#ifndef BASE_UTILS_GTEST_H_
2#define BASE_UTILS_GTEST_H_
3#include <gtest/gtest.h>
14using Types = ::testing::Types<
15 std::tuple<float, ct::DEVICE_CPU>, std::tuple<float, ct::DEVICE_GPU>,
16 std::tuple<double, ct::DEVICE_CPU>, std::tuple<double, ct::DEVICE_GPU>,
24 std::tuple<float, ct::DEVICE_CPU>,
25 std::tuple<double, ct::DEVICE_CPU>,
30static inline void init_blas_handle() {
32 ct::kernels::createGpuBlasHandle();
36static inline void delete_blas_handle() {
38 ct::kernels::destroyGpuBlasHandle();
42static inline void init_cusolver_handle() {
44 ct::kernels::createGpuSolverHandle();
48static inline void delete_cusolver_handle() {
50 ct::kernels::destroyGpuSolverHandle();
::testing::Types< std::tuple< float, ct::DEVICE_CPU >, std::tuple< double, ct::DEVICE_CPU >, std::tuple< std::complex< float >, ct::DEVICE_CPU >, std::tuple< std::complex< double >, ct::DEVICE_CPU > > Types
Definition gtest.h:27
::testing::Types< std::tuple< std::complex< float >, ct::DEVICE_CPU >, std::tuple< std::complex< double >, ct::DEVICE_CPU > > ComplexTypes
Definition gtest.h:22
A tag type for identifying CPU and GPU devices.
Definition tensor_types.h:68
Definition tensor_types.h:69