Convert gmx_detect_hardware.c to C++
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 17 May 2014 12:23:00 +0000 (14:23 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 19 May 2014 11:59:37 +0000 (13:59 +0200)
commit1434a2a4a4de1c4ee1a4cf595b87dc645b9a34f5
tree3d00190aade95749188cce457890918ed2821ab2
parent7338696f1d4b9701715e08b3765d38613e0e8bc6
Convert gmx_detect_hardware.c to C++

Minor fixes to keep new compilers and static analysis happy. The
change to the return behaviour of sizeof_cuda_dev_info does not
matter, because it is only used if it is non-zero.

Change-Id: If2c9c2676667316637a30af9ead71fb9f77058c2
src/gromacs/gmxlib/gmx_detect_hardware.cpp [moved from src/gromacs/gmxlib/gmx_detect_hardware.c with 99% similarity]
src/gromacs/legacyheaders/gpu_utils.h