5#ifndef GKO_PUBLIC_CORE_BASE_DEVICE_HPP_
6#define GKO_PUBLIC_CORE_BASE_DEVICE_HPP_
14#include <ginkgo/config.hpp>
30 friend class CudaExecutor;
31 friend class HipExecutor;
41 static std::mutex& get_mutex(
int i);
50 static int& get_num_execs(
int i);
52 static constexpr int max_devices = 64;
61 friend class HipExecutor;
71 static std::mutex& get_mutex(
int i);
80 static int& get_num_execs(
int i);
82 static constexpr int max_devices = 64;
This is the Executor subclass which represents the CUDA device.
Definition executor.hpp:1542
This is the Executor subclass which represents the HIP enhanced device.
Definition executor.hpp:1779
amd_device handles the number of executor on Amd devices and have the corresponding recursive_mutex.
Definition device.hpp:60
nvidia_device handles the number of executor on Nvidia devices and have the corresponding recursive_m...
Definition device.hpp:29
The Ginkgo namespace.
Definition abstract_factory.hpp:20