Fix bug in using threads and GPU Nebo backends the same time
First reported by Chris Earl in May, 2014
This bug only appears on certain systems (prism and a few laptops). To reproduce the bug, set ENABLE_THREADS=ON
and ENABLE_CUDA=ON
during configuration.
Example errors:
../libspatialops-structured.a(spatialops-structured_generated_CudaMemoryAllocator.cu.o): In function `_GLOBAL__sub_I_tmpxft_000016bb_00000000_3_CudaMemoryAllocator.cudafe1.cpp':
tmpxft_000016bb_00000000-3_CudaMemoryAllocator.cudafe1.cpp:(.text.startup+0x6b): undefined reference to `boost::system::generic_category()'
tmpxft_000016bb_00000000-3_CudaMemoryAllocator.cudafe1.cpp:(.text.startup+0x77): undefined reference to `boost::system::generic_category()'
tmpxft_000016bb_00000000-3_CudaMemoryAllocator.cudafe1.cpp:(.text.startup+0x83): undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
These errors imply there is a problem with how boost and CudaMemoryAllocator.cu interact.