2013-07-18 25 views
0

GPUMLib无法解析的外部我想建立GPUMLib,我也得到了以下错误在构建时

Error 11 error LNK2019: unresolved external symbol "public: static void __cdecl   GPUMLib::Random::SetSeed(unsigned __int64,enum curandRngType)" ([email protected]@[email protected]@[email protected]@@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> &)" ([email protected]@[email protected]@[email protected]@[email protected]@Z) referenced in function "public: void __thiscall GPUMLib::RBM::ContrastiveDivergence(int)" ([email protected]@[email protected]@[email protected]) 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 

任何想法可能会导致什么呢?请注意,这是从失败的整个库

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 ========== 
+0

这听起来像是你正在编译的代码的作者的问题,而不是[SO]上的CUDA或CULA编程问题。 – talonmies

+0

为了获得目前建立的大部分库,我必须在每个CULA包含之前插入#define CULA_USE_CUDA_COMPLEX。奇怪的是,我认为图书馆的这部分工作是在这些调整之前进行的。我不是这方面的专家,但是将这个库启动并运行会很好。 – valentin

+0

@valentin尝试在GPUMlib或CULA论坛上发帖。 –

回答

0

由于库的作者建议建立的唯一部件,在src /随机文件夹,我不得不重新命名“random.cu”到“随机。 CPP”。这解决了这个问题。

相关问题