0

I am trying to build GPUMLib, and I get the following errors

Error   11  error LNK2019: unresolved external symbol "public: static void __cdecl         GPUMLib::Random::SetSeed(unsigned __int64,enum curandRngType)" (?SetSeed@Random@GPUMLib@@SAX_KW4curandRngType@@@Z) referenced in function _main  C:\libraries\GPUMLib1\build\src\examples\DBN\DBNapp.obj

Error   12  error LNK2019: unresolved external symbol "public: static void __cdecl GPUMLib::Random::Fill(class GPUMLib::DeviceArray<float> &)" (?Fill@Random@GPUMLib@@SAXAAV?$DeviceArray@M@2@@Z) referenced in function "public: void __thiscall GPUMLib::RBM::ContrastiveDivergence(int)" (?ContrastiveDivergence@RBM@GPUMLib@@QAEXH@Z)   C:\libraries\GPUMLib1\build\src\examples\DBN\RBMKernels.lib(RBMKernels_generated_rbm.cu.obj)
Error   13  error LNK1120: 2 unresolved externals   C:\libraries\GPUMLib1\build\src\examples\DBN\Debug\DBN.exe  1

Any ideas what might be causing this ? Please note that this is the only part that is unsuccessfully built from the entire library

20>  Build all projects
21>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
21>Project not selected to build for this solution configuration 
========== Build: 19 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
4

1 回答 1

0

正如图书馆的作者所建议的那样,在 src/random 文件夹中,我必须将“random.cu”重命名为“random.cpp”。这解决了问题。

于 2013-07-22T17:54:25.430 回答