2015-09-26 21:42:28 +03:00
# ifdef CPUONLY
2016-01-20 17:59:35 +03:00
# 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
2015-09-26 21:42:28 +03:00
2015-10-22 18:25:37 +03:00
# include "BestGpu.h"
2015-09-26 21:42:28 +03:00
# include "cudalatticeops.h"
2015-10-06 22:34:26 +03:00
# include "cudalattice.h"
2015-09-26 21:42:28 +03:00
2016-01-18 11:36:14 +03:00
# 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
2015-09-26 21:42:28 +03:00
namespace msra { namespace cuda {
2016-01-18 11:36:14 +03:00
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 ;
}
}
}
2015-09-26 21:42:28 +03:00
# endif // CPUONLY