Build without cuda fails even with HAVE_CUDA=0
jwlogin06:~/shared/ccstaoProject/linktest]$ml GCC ParaStationMPI SIONlib
jwlogin06:~/shared/ccstaoProject/linktest]$ml unload CUDA
jwlogin06:~/shared/ccstaoProject/linktest]$cd benchmark/
jwlogin06:~/shared/ccstaoProject/linktest/benchmark]$make HAVE_PSM2=0 HAVE_CUDA=0
memory.o:memory.cc:function MemoryBuffer::fill(): error: undefined reference to 'void linktest::cuda::fill<char>(linktest::cuda::GpuContext*, char*, char*, char const&)'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::report_cuda_error(char const*, cudaError_enum): error: undefined reference to 'cuGetErrorName'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::report_cuda_error(char const*, cudaError_enum): error: undefined reference to 'cuGetErrorString'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::cuda_init(): error: undefined reference to 'cuInit'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuDevice::GpuDevice(int): error: undefined reference to 'cuDeviceGet'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::GpuContext(linktest::cuda::GpuDevice*): error: undefined reference to 'cuCtxCreate_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::~GpuContext(): error: undefined reference to 'cuCtxDestroy_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::execute(std::function<int ()>): error: undefined reference to 'cuCtxPushCurrent_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::execute(std::function<int ()>): error: undefined reference to 'cuCtxPopCurrent_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::memalloc(unsigned long)::{lambda()#1}::operator()() const: error: undefined reference to 'cuMemAlloc_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::memalloc(unsigned long)::{lambda()#1}::operator()() const: error: undefined reference to 'cuPointerSetAttribute'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::memalloc(unsigned long)::{lambda()#1}::operator()() const: error: undefined reference to 'cuMemsetD8_v2'
gpu_nvidia.o:gpu_nvidia.cc:function linktest::cuda::GpuContext::memfree(void*)::{lambda()#1}::operator()() const: error: undefined reference to 'cuMemFree_v2'
vcluster_ibverbs.o:vcluster_ibverbs.cc:vtable for VirtualClusterIbverbs: error: undefined reference to 'VirtualCluster::write_parallel(linktest_args const*, linktest_stats const*)'
vcluster_ibverbs.o:vcluster_ibverbs.cc:vtable for VirtualClusterIbverbs: error: undefined reference to 'VirtualCluster::write_funneled(linktest_args const*, linktest_stats const*)'
vcluster_tcp.o:vcluster_tcp.cc:vtable for VirtualClusterTCP: error: undefined reference to 'VirtualCluster::write_parallel(linktest_args const*, linktest_stats const*)'
vcluster_tcp.o:vcluster_tcp.cc:vtable for VirtualClusterTCP: error: undefined reference to 'VirtualCluster::write_funneled(linktest_args const*, linktest_stats const*)'