Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Building Infer project #41

Open
faizan30 opened this issue Dec 8, 2016 · 2 comments
Open

Building Infer project #41

faizan30 opened this issue Dec 8, 2016 · 2 comments

Comments

@faizan30
Copy link

faizan30 commented Dec 8, 2016

Hello, what should be the project properties for infer project? I'm using visual studio 13.

@1234clam
Copy link

you can see the source code of the link:
https://github.com/Microsoft/LightLDA/blob/master/src/common.cpp
In the file common.cpp exist fellow code:

void Config::PrintTrainingUsage()
    {
        printf("LightLDA usage: \n");
        printf("-num_vocabs <arg>        Size of dataset vocabulary \n");
        printf("-num_topics <arg>        Number of topics. Default: 100\n");
        printf("-num_iterations <arg>    Number of iteratioins. Default: 100\n");
        printf("-mh_steps <arg>          Metropolis-hasting steps. Default: 2\n");
        printf("-alpha <arg>             Dirichlet prior alpha. Default: 0.1\n");
        printf("-beta <arg>              Dirichlet prior beta. Default: 0.01\n\n");
        printf("-num_blocks <arg>        Number of blocks in disk. Default: 1\n");
        printf("-max_num_document <arg>  Max number of document in a data block \n");
        printf("-input_dir <arg>         Directory of input data, containing\n");
        printf("                         files generated by dump_block \n\n");
        printf("-num_servers <arg>       Number of servers. Default: 1\n");
        printf("-num_local_workers <arg> Number of local training threads. Default: 4\n");
        printf("-num_aggregator <arg>    Number of local aggregation threads. Default: 1\n");
        printf("-server_file <arg>       Server endpoint file. Used by MPI-free version\n"); 
        printf("-warm_start              Warm start \n");
        printf("-out_of_core             Use out of core computing \n\n");
        printf("-data_capacity <arg>     Memory pool size(MB) for data storage, \n");
        printf("                         should larger than the any data block\n");
        printf("-model_capacity <arg>    Memory pool size(MB) for local model cache\n");
        printf("-alias_capacity <arg>    Memory pool size(MB) for alias table \n");
        printf("-delta_capacity <arg>    Memory pool size(MB) for local delta cache\n");
        exit(0);
    }

I hope the answer can help you with you question.

@ruskie95
Copy link

ruskie95 commented Dec 9, 2017

infer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::AliasTable::~AliasTable(void)" (??1AliasTable@lightlda@multiverso@@qeaa@XZ)
infer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::AliasTable::AliasTable(void)" (??0AliasTable@lightlda@multiverso@@qeaa@XZ)
infer.obj : error LNK2001: unresolved external symbol "public: static bool multiverso::lightlda::Config::warm_start" (?warm_start@Config@lightlda@multiverso@@2_NA)
infer.obj : error LNK2001: unresolved external symbol "public: static int multiverso::lightlda::Config::num_iterations" (?num_iterations@Config@lightlda@multiverso@@2ha)
infer.obj : error LNK2001: unresolved external symbol "public: void __cdecl multiverso::lightlda::LocalModel::Init(void)" (?Init@LocalModel@lightlda@multiverso@@QEAAXXZ)
infer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::LocalModel::LocalModel(class multiverso::lightlda::Meta *)" (??0LocalModel@lightlda@multiverso@@qeaa@PEAVMeta@12@@z)
infer.obj : error LNK2001: unresolved external symbol "public: static void __cdecl multiverso::lightlda::Config::Init(int,char * * const)" (?Init@Config@lightlda@multiverso@@SAXHQEAPEAD@Z)
infer.obj : error LNK2001: unresolved external symbol "public: static int multiverso::lightlda::Config::num_blocks" (?num_blocks@Config@lightlda@multiverso@@2ha)
infer.obj : error LNK2001: unresolved external symbol "public: static int multiverso::lightlda::Config::num_local_workers" (?num_local_workers@Config@lightlda@multiverso@@2ha)
infer.obj : error LNK2001: unresolved external symbol "public: void __cdecl multiverso::lightlda::Document::GetDocTopicVector(class multiverso::Row &)" (?GetDocTopicVector@Document@lightlda@multiverso@@QEAAXAEAV?$Row@H@3@@z)
infer.obj : error LNK2001: unresolved external symbol "public: static int multiverso::lightlda::Config::num_topics" (?num_topics@Config@lightlda@multiverso@@2ha)
infer.obj : error LNK2001: unresolved external symbol "class multiverso::lightlda::IDataStream * __cdecl multiverso::lightlda::CreateDataStream(void)" (?CreateDataStream@lightlda@multiverso@@YAPEAVIDataStream@12@XZ)
infer.obj : error LNK2001: unresolved external symbol "public: void __cdecl multiverso::lightlda::Meta::Init(void)" (?Init@Meta@lightlda@multiverso@@QEAAXXZ)
infer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::Meta::~Meta(void)" (??1Meta@lightlda@multiverso@@qeaa@XZ)
infer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::Meta::Meta(void)" (??0Meta@lightlda@multiverso@@qeaa@XZ)
infer.obj : error LNK2001: unresolved external symbol "public: static bool multiverso::lightlda::Config::inference" (?inference@Config@lightlda@multiverso@@2_NA)
inferer.obj : error LNK2001: unresolved external symbol "public: int __cdecl multiverso::lightlda::LightDocSampler::SampleOneDoc(class multiverso::lightlda::Document *,int,int,class multiverso::lightlda::ModelBase *,class multiverso::lightlda::AliasTable *)" (?SampleOneDoc@LightDocSampler@lightlda@multiverso@@QEAAHPEAVDocument@23@HHPEAVModelBase@23@PEAVAliasTable@23@@z)
inferer.obj : error LNK2001: unresolved external symbol "public: __cdecl multiverso::lightlda::LightDocSampler::LightDocSampler(void)" (??0LightDocSampler@lightlda@multiverso@@qeaa@XZ)
inferer.obj : error LNK2001: unresolved external symbol "public: void __cdecl multiverso::lightlda::AliasTable::Clear(void)" (?Clear@AliasTable@lightlda@multiverso@@QEAAXXZ)
inferer.obj : error LNK2001: unresolved external symbol "public: int __cdecl multiverso::lightlda::AliasTable::Build(int,class multiverso::lightlda::ModelBase *)" (?Build@AliasTable@lightlda@multiverso@@QEAAHHPEAVModelBase@23@@z)
inferer.obj : error LNK2001: unresolved external symbol "public: void __cdecl multiverso::lightlda::AliasTable::Init(class multiverso::lightlda::AliasTableIndex *)" (?Init@AliasTable@lightlda@multiverso@@QEAAXPEAVAliasTableIndex@23@@z)
C:\Users\nguyen\Desktop\LightLDA\windows\x64\Release\infer.exe : fatal error LNK1120: 21 unresolved externals

Can anyone help wwhat wrong when i build infer project in VS 2017?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants