Class engine

namespace jd

Note

jit classes in this file may not meet the coding convention and is to be refactored.

class engine_t

Subclassed by jd::cpu_engine_t, jd::gpu_ocl_engine_t

Public Functions

inline engine_t(const engine_kind &engine_kind, const runtime_kind &runtime_kind)
inline virtual ~engine_t()
inline const engine_kind &get_engine_kind() const
inline const runtime_kind &get_runtime_kind() const
virtual const std::vector<impl_list_item_t> *get_implementation_list(const operator_desc &op_desc) const = 0
virtual bool create_kernel(const operator_desc&, std::shared_ptr<kernel_t>&, const stream_t*) const = 0
virtual bool create_stream(stream_t**) const = 0
virtual bool create_memory_storage(memory_storage_t**) const = 0

Protected Attributes

engine_kind engine_kind_
runtime_kind runtime_kind_

Defines

CPU_INSTANCE(...)
NULL_INSTANCE(...)
namespace jd

Note

jit classes in this file may not meet the coding convention and is to be refactored.

class cpu_engine_t : public jd::engine_t

Public Functions

inline cpu_engine_t()
inline virtual ~cpu_engine_t()
virtual bool create_memory_storage(memory_storage_t **storage) const override
inline virtual bool create_stream(stream_t**) const override
virtual const std::vector<impl_list_item_t> *get_implementation_list(const operator_desc &op_desc) const override
virtual bool create_kernel(const operator_desc&, std::shared_ptr<kernel_t>&, const stream_t*) const override

Public Static Attributes

static const std::vector<impl_list_item_t> empty_list = {}