Revision 92796cfd8bc4435cc71e4ef994b341f120136cf0 authored by Bowen Bao on 06 July 2018, 01:37:40 UTC, committed by Bowen Bao on 06 July 2018, 01:37:40 UTC
1 parent 6cc772f
latticeNoGPU.cpp
#ifdef CPUONLY
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS // "secure" CRT not available on all platforms --add this at the top of all CPP files that give "function or variable may be unsafe" warnings
#endif
#include "BestGpu.h"
#include "cudalatticeops.h"
#include "cudalattice.h"
#pragma warning(disable : 4100) // unreferenced formal parameter, which is OK since all functions in here are dummies; disabling this allows to copy-paste prototypes here when we add new functions
#pragma warning(disable : 4702) // unreachable code, which we get from the NOT_IMPLEMENTED macro which is OK
namespace msra { namespace cuda {
void latticefunctionsops::edgealignment(const vectorref<lrhmmdef>& hmms, const vectorref<lr3transP>& transPs, const size_t spalignunitid,
const size_t silalignunitid, const matrixref<float>& logLLs,
const vectorref<msra::lattices::nodeinfo>& nodes, const vectorref<msra::lattices::edgeinfowithscores>& edges,
const vectorref<msra::lattices::aligninfo>& aligns, const vectorref<unsigned int>& alignoffsets,
vectorref<unsigned short>& backptrstorage, const vectorref<size_t>& backptroffsets,
vectorref<unsigned short>& alignresult, vectorref<float>& edgeacscores) const
{
}
void latticefunctionsops::forwardbackwardlattice(const size_t* batchsizeforward, const size_t* batchsizebackward,
const size_t numlaunchforward, const size_t numlaunchbackward,
const size_t spalignunitid, const size_t silalignunitid,
const vectorref<float>& edgeacscores, const vectorref<msra::lattices::edgeinfowithscores>& edges,
const vectorref<msra::lattices::nodeinfo>& nodes,
const vectorref<msra::lattices::aligninfo>& aligns, const vectorref<unsigned short>& aligments,
const vectorref<unsigned int>& aligmentoffsets,
vectorref<double>& logpps, vectorref<double>& logalphas, vectorref<double>& logbetas,
const float lmf, const float wp, const float amf, const float boostingfactor, const bool returnEframescorrect,
const vectorref<unsigned short>& uids, const vectorref<unsigned short>& senone2classmap,
vectorref<double>& logaccalphas, vectorref<double>& logaccbetas,
vectorref<double>& logframescorrectedge, vectorref<double>& logEframescorrect, vectorref<double>& Eframescorrectbuf,
double& logEframescorrecttotal, double& totalfwscore) const
{
}
void latticefunctionsops::sMBRerrorsignal(const vectorref<unsigned short>& alignstateids, const vectorref<unsigned int>& alignoffsets,
const vectorref<msra::lattices::edgeinfowithscores>& edges, const vectorref<msra::lattices::nodeinfo>& nodes,
const vectorref<double>& logpps, const float amf, const vectorref<double>& logEframescorrect, const double logEframescorrecttotal,
matrixref<float>& errorsignal, matrixref<float>& errorsignalneg) const
{
}
void latticefunctionsops::mmierrorsignal(const vectorref<unsigned short>& alignstateids, const vectorref<unsigned int>& alignoffsets,
const vectorref<msra::lattices::edgeinfowithscores>& edges, const vectorref<msra::lattices::nodeinfo>& nodes,
const vectorref<double>& logpps, matrixref<float>& errorsignal) const
{
}
void latticefunctionsops::stateposteriors(const vectorref<unsigned short>& alignstateids, const vectorref<unsigned int>& alignoffsets,
const vectorref<msra::lattices::edgeinfowithscores>& edges, const vectorref<msra::lattices::nodeinfo>& nodes,
const vectorref<double>& logqs, matrixref<float>& logacc) const
{
}
latticefunctions* newlatticefunctions(size_t deviceid)
{
return nullptr;
}
lrhmmdefvector* newlrhmmdefvector(size_t deviceid)
{
return nullptr;
}
lr3transPvector* newlr3transPvector(size_t deviceid)
{
return nullptr;
}
ushortvector* newushortvector(size_t deviceid)
{
return nullptr;
}
uintvector* newuintvector(size_t deviceid)
{
return nullptr;
}
floatvector* newfloatvector(size_t deviceid)
{
return nullptr;
}
doublevector* newdoublevector(size_t deviceid)
{
return nullptr;
}
sizetvector* newsizetvector(size_t deviceid)
{
return nullptr;
}
nodeinfovector* newnodeinfovector(size_t deviceid)
{
return nullptr;
}
edgeinfowithscoresvector* newedgeinfovector(size_t deviceid)
{
return nullptr;
}
aligninfovector* newaligninfovector(size_t deviceid)
{
return nullptr;
}
}
}
#endif // CPUONLY
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...