Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup test environment: linker errors if GPUScBFM_AB_Type(...) is called #1

Open
MartinWenge opened this issue Jun 8, 2018 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@MartinWenge
Copy link
Member

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?

@MartinWenge MartinWenge added the help wanted Extra attention is needed label Jun 8, 2018
tonimueller added a commit that referenced this issue May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants