MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013674 | CMake | CMake | public | 2012-11-09 13:19 | 2016-06-10 14:31 |
Reporter | James Shackleford | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 LTS |
Product Version | CMake 2.8.10.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013674: FindCUDA does not respect -ccbin or --compiler-bindir arguments | ||||
Description | FindCUDA/run_nvcc.cmake (lines 106--115) prevent manual specification of the compiler to be used by the Nvidia CUDA compiler nvcc via the -ccbin or --compiler-bindir arguments. The issue is to due the incorrect usage of LIST(FIND ...) to perform a substring search, resulting in a false negative. As a result of the failed LIST(FIND ...), run_nvcc.cmake sets the preferred compiler to the system default gcc *AND* also passes the undetected manually specified gcc version. This results in nvcc failing due to a duplicate parameter specification for the external compiler. Because nvcc is only compatible with a select few versions of gcc on Linux, the inability to set this parameter is an issue for users who do not use one of these Nvidia approved versions of gcc as their default compiler. | ||||
Steps To Reproduce | For example: set (CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --compiler-bindir=/usr/bin/gcc-4.4") with result in nvcc fatal : redefinition of argument 'compiler-bindir' | ||||
Additional Information | I do not believe FindCUDA/run_nvcc.cmake (lines 106--115) are necessary. Removal of these offending lines seems to restore correct behavior for the cases: [1] -ccbin parameter not specified [2] -ccbin parameter specified [3] --compiler-bindir parameter not specified [4] --compiler-bindir parameter specified | ||||
Tags | CMake, CUDA, FindCUDA, nvcc | ||||
Relationships | |||||
Attached Files | FindCUDA.patch (802) 2012-11-09 13:19 https://public.kitware.com/Bug/file/4560/FindCUDA.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-11-09 13:19 | James Shackleford | New Issue | |||
2012-11-09 13:19 | James Shackleford | File Added: FindCUDA.patch | |||
2012-11-09 13:21 | James Shackleford | Tag Attached: CMake | |||
2012-11-09 13:21 | James Shackleford | Tag Attached: CUDA | |||
2012-11-09 13:22 | James Shackleford | Tag Attached: FindCUDA | |||
2012-11-09 13:22 | James Shackleford | Tag Attached: nvcc | |||
2012-11-11 00:22 | James Bigler | Note Added: 0031522 | |||
2013-08-26 15:14 | domibel | Note Added: 0033748 | |||
2015-06-04 11:09 | Michele Mastropietro | Note Added: 0038884 | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042147 | |||
2016-06-10 14:28 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|