Project

General

Profile

Bug #1051

Cuda host compiler with CMake 2.8.10.1

Added by Roland Schulz over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
build system
Target version:
Affected version - extra info:
4.6-beta1
Affected version:
Difficulty:
uncategorized
Close

Description

Cmake 2.8.10.1 added a new option CUDA_HOST_COMPILER, but we specify ccbin directly in gmxManageNvccConfig.cmake, resulting in "nvcc fatal : redefinition of argument 'compiler-bindir'"
We probably should use CUDA_HOST_COMPILER for >=2.8.10 and only use the existing method for older versions.

Cmake bug: http://www.gccxml.org/Bug/view.php?id=13674
Email thread: http://lists.gromacs.org/pipermail/gmx-users/2012-November/076758.html

Associated revisions

Revision 9765be25 (diff)
Added by Szilárd Páll over 6 years ago

don't auto-set nvcc host compiler with cmake >2.8.9

Starting with CMake 2.8.10 the FindCUDA module set sets the nvcc host
compiler by default which clashes with our internal implementation of
the same feature. To support both pre-2.8.10 and later versions, this
change renames the CUDA_NVCC_HOST_COMPILER cache variable to
CUDA_HOST_COMPILER (used by CMake 2.8.10's FindCUDA) and avoids adding
the -ccbin option to the nvcc flags with CMake 2.8.10 and later.

Fixes #1051

Change-Id: I4d4048d520edb8655b88b6bae35f97df76a25910

History

#1 Updated by Mark Abraham over 6 years ago

  • Status changed from New to Closed

Also available in: Atom PDF