Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wfr/common/wfs/AtomicActivityImplementation.h>
|
||||
|
||||
|
||||
namespace wfr {
|
||||
namespace wfs {
|
||||
|
||||
|
||||
class CUDAActivityImplementation : public AtomicActivityImplementation {
|
||||
public:
|
||||
const ExecutionHookFunc executionFuncHook;
|
||||
public:
|
||||
CUDAActivityImplementation( const ExecutionHookFunc& executionFuncHook,
|
||||
const std::vector<resource::RequiredResourceCapability>& capabilities,
|
||||
const utils::Properties& properties,
|
||||
const std::string& name = "") noexcept
|
||||
: AtomicActivityImplementation(ActivityImplementationType::CUDA, capabilities, properties, name),
|
||||
executionFuncHook(executionFuncHook) {}
|
||||
};
|
||||
|
||||
|
||||
} /* namespace wfs */
|
||||
} /* namespace wfr */
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wfr/common/wfs/AtomicActivityImplementation.h>
|
||||
|
||||
|
||||
namespace wfr {
|
||||
namespace wfs {
|
||||
|
||||
|
||||
class OpenCLActivityImplementation : public AtomicActivityImplementation {
|
||||
public:
|
||||
const ExecutionHookFunc executionFuncHook;
|
||||
public:
|
||||
OpenCLActivityImplementation( const ExecutionHookFunc& executionFuncHook,
|
||||
const std::vector<resource::RequiredResourceCapability>& capabilities,
|
||||
const utils::Properties& properties,
|
||||
const std::string& name = "") noexcept
|
||||
: AtomicActivityImplementation(ActivityImplementationType::OpenCL, capabilities, properties, name),
|
||||
executionFuncHook(executionFuncHook) {}
|
||||
};
|
||||
|
||||
|
||||
} /* namespace wfs */
|
||||
} /* namespace wfr */
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wfr/common/wfs/AtomicActivityImplementation.h>
|
||||
|
||||
|
||||
namespace wfr {
|
||||
namespace wfs {
|
||||
|
||||
|
||||
class PThreadActivityImplementation : public AtomicActivityImplementation {
|
||||
public:
|
||||
const ExecutionHookFunc executionFuncHook;
|
||||
public:
|
||||
PThreadActivityImplementation( const ExecutionHookFunc& executionFuncHook,
|
||||
const std::vector<resource::RequiredResourceCapability>& capabilities,
|
||||
const utils::Properties& properties,
|
||||
const std::string& name ) noexcept
|
||||
: AtomicActivityImplementation(ActivityImplementationType::PThread, capabilities, properties, name),
|
||||
executionFuncHook(executionFuncHook) {}
|
||||
};
|
||||
|
||||
|
||||
} /* namespace wfs */
|
||||
} /* namespace wfr */
|
||||
|
||||
Reference in New Issue
Block a user