auto-set nvcc host compiler with FindMPI detection
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 2 Nov 2012 00:41:18 +0000 (01:41 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Wed, 7 Nov 2012 13:50:44 +0000 (14:50 +0100)
commit9372221f8b93be75e40b6b07c48ddf4e1ad66531
tree4fbccb8215d1ffea3b0678f1ebfa18262d0971ae
parentf3b5ee59d7fd2c48a9f38750149ded711d35041f
auto-set nvcc host compiler with FindMPI detection

Distinguish between MPI build that use MPI compiler wrapper and FindMPI
as as in the latter case the CMAKE_C_COMPILER can be used safely as the
CUDA compiler's CPU backend.

Additional minor changes in cmake/gmxManageNvccConfig.cmake:
- added more detailed explanation on some strange things done in order
  to please nvcc;
- bumped icc gcc compatibility version to 4.5 with CUDA <=v4.1;
- added explanation on CUDA code generation;
- typos fixed.

Change-Id: Ia82bc63c129ac897ce88175f919b4f034e7ce665
cmake/gmxManageNvccConfig.cmake