-
Notifications
You must be signed in to change notification settings - Fork 2
Description
To understand the program I was trying to setup some tests using Catch2, for instance to simply check if after one mcs on the device no monomer moved more than two lattice sites and things like this. An initial setup can be found in my fork
setupTests
Unfortunately I get some linker errors and warnings (from the random number generators) I cannot deal with. They look like:
[ 88%] Linking CXX executable bin/tests
libpscbfmUpdater.a(pscbfmUpdater_generated_UpdaterGPUScBFM_AB_Type.cu.o): In Funktion »UpdaterGPUScBFM_AB_Type::~UpdaterGPUScBFM_AB_Type()«:
tmpxft_0000089e_00000000-5_UpdaterGPUScBFM_AB_Type.cudafe1.cpp:(.text._ZN23UpdaterGPUScBFM_AB_TypeIhED2Ev[_ZN23UpdaterGPUScBFM_AB_TypeIhED5Ev]+0x7f): Warnung: undefinierter Verweis auf »RandomNumberGenerators::~RandomNumberGenerators()«
tmpxft_0000089e_00000000-5_UpdaterGPUScBFM_AB_Type.cudafe1.cpp:(.text._ZN23UpdaterGPUScBFM_AB_TypeIiE18runSimulationOnGPUEj[_ZN23UpdaterGPUScBFMarnung: undefinierter Verweis auf »RandomNumberGenerators::r250Engine«
...
...
tmpxft_0000089e_00000000-5_UpdaterGPUScBFM_AB_Type.cudafe1.cpp:(.text._ZN23UpdaterGPUScBFM_AB_TypeIiE18runSimulationOnGPUEj[_ZN23UpdaterGPUScBFMarnung: undefinierter Verweis auf »R250::refresh()«
collect2: error: ld returned 1 exit status
tests/CMakeFiles/tests.dir/build.make:126: recipe for target 'tests/bin/tests' failed
make[2]: *** [tests/bin/tests] Error 1
CMakeFiles/Makefile2:269: recipe for target 'tests/CMakeFiles/tests.dir/all' failed
make[1]: *** [tests/CMakeFiles/tests.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2'
Any suggestions to make it work?? Any crude mistakes in my CMakeLists.txt?