16#ifndef MILUPHPC_MATERIAL_HANDLER_H
17#define MILUPHPC_MATERIAL_HANDLER_H
20#include "../cuda_utils/cuda_runtime.h"
21#include "../parameter.h"
22#include "../utils/logger.h"
25#include <libconfig.h++>
113 void communicate(
int from,
int to,
bool fromDevice =
false,
bool toDevice =
true);
122 void broadcast(
int root = 0,
bool fromDevice =
false,
bool toDevice =
true);
Read material config files.
int loadConfigFromFile(const char *configFile)
Material * h_materials
host instance of material class
void broadcast(int root=0, bool fromDevice=false, bool toDevice=true)
void copy(To::Target target, integer index=-1)
MaterialHandler(integer numMaterials)
Constructor.
integer numMaterials
number of materials or rather material instances
void communicate(int from, int to, bool fromDevice=false, bool toDevice=true)
~MaterialHandler()
Destructor.
Material * d_materials
device instance of material class
Material parameters and settings.