19#include "RegisteredObject.h"
26 typedef std::shared_ptr<Module> SP;
30 struct DeviceData :
public RegisteredObject::DeviceData {
71 std::string
toString()
const override;
77 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
96 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
void build()
Definition: Module.cpp:105
CUmodule computeModule
Definition: Module.h:57
void destroy()
Definition: Module.cpp:91
virtual ~DeviceData()
Definition: Module.cpp:84
OptixModule module
Definition: Module.h:52
Module *const parent
Definition: Module.h:46
const std::vector< uint8_t > optixIRCode
Definition: Module.h:86
std::string toString() const override
Definition: Module.cpp:231
const std::string ptxCode
Definition: Module.h:83
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
Definition: Module.cpp:225
DeviceData & getDD(const DeviceContext::SP &device) const
Definition: Module.h:94
virtual ~Module()
Definition: Module.cpp:218
bool useIR
Definition: Module.h:80
std::vector< DeviceData::SP > deviceData
Definition: Object.h:86
Definition: RegisteredObject.h:30