Fix one error and compiler warnings with Cuda & clang-3.6
authorErik Lindahl <erik@kth.se>
Fri, 12 Jun 2015 20:17:47 +0000 (22:17 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 28 Jun 2015 16:47:30 +0000 (18:47 +0200)
commit5822b640b44e910b8accc6727e661907b5e47ffe
tree9db24f43f11ee9163dcea0844594a20e4aef818c
parentaea28fdc666637aa0a4636b58e37cef731b468be
Fix one error and compiler warnings with Cuda & clang-3.6

Clang-3.6 on OS X can now be used by nvcc. clang found one
error related to || being used instead of | to set flag bits,
and a handful of warnings variables in headers not being used.
The latter is caused by declaring constants in headers, and
making then static to avoid clashing symbols. However, this emits
them in every single compile unit that includes the header. Fixed
by either moving names to a cpp file, or changing to defines.

Change-Id: Ib4d59c40aa8caffc667cc202a3efe45891b2abe3
src/gromacs/gmxlib/cuda_tools/pmalloc_cuda.cu
src/gromacs/gmxlib/gmx_detect_hardware.cpp
src/gromacs/legacyheaders/types/hw_info.h
src/gromacs/mdlib/nbnxn_consts.h
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel.cuh
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_utils.cuh