Пример #1
0
void ReferencePlatform::contextCreated(ContextImpl& context, const map<string, string>& properties) const {
    context.setPlatformData(new PlatformData(context.getSystem()));
}
Пример #2
0
void OclMD::CpuPlatform::createData(ContextImpl& context) const {
    context.setPlatformData(new CpuPlatform::PlatformData(context.getSystem().getNumParticles()));
#ifdef FULLDEBUG
    std::cout << "CPU platform data created " << std::endl;
#endif
}