MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0012198 | CMake | CMake | public | 2011-05-17 08:51 | 2016-06-10 14:31 | |||||
Reporter | Denis Shamonin | |||||||||
Assigned To | James Bigler | |||||||||
Priority | high | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | Windows | OS | Windows 7 (64 bit) | OS Version | ||||||
Product Version | CMake 2.8.4 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0012198: FindCUDA.cmake, INCLUDE_DIRECTORIES, The command line is too long. | |||||||||
Description | Hello, 1. I am posting it to CMake bug tracker because original creators of FindCUDA.cmake James Bigler and Abe Stephens not willing to support it according to http://www.cmake.org/pipermail/cmake/2010-January/034322.html [^] 2. Development tools: Visual Studio 2008 CMake 2.8.4 CUDA Toolkit 3.2 stable release (64 bit) ITK 4.0.0 3. I've created the simple library with only 2 files in it (see CUDA_lib_test.zip) . This library also includes ITK4 with FIND_PACKAGE( ITK REQUIRED ) 4. Problem: Therefore we have some issues with FindCUDA.cmake module. When we start the compilation we see the following call to NVidia compiler (see nvcc_call.txt inside of CUDA_lib_test.zip) This call looks very strange to us. Why would you need to pass all include directories from entire solution to NVidia compiler? I could understand that you would like to provide include directories for the ncvv.exe -Xcompiler option. But probably in more specific and controlled way. I've studied this problem a bit and found that this is happens because of the CMake call: get_directory_property(CUDA_NVCC_INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES) at line 890: FindCUDA.cmake if(CUDA_NVCC_INCLUDE_DIRECTORIES) foreach(dir ${CUDA_NVCC_INCLUDE_DIRECTORIES}) list(APPEND CUDA_NVCC_INCLUDE_ARGS "-I${dir}") endforeach() endif() Do you mean the CUDA_INCLUDE_DIRECTORIES instead of INCLUDE_DIRECTORIES? So as a temp solution we commented this part of FindCUDA.cmake. The question is how to control or disable the directories to be passed to NVidia compiler? As a result of this long ITK include directories list NVidia compiler could not be executed on Windows platform. Ending with system error: 1>The command line is too long. 1>CMake Error at CMakeFiles/CUDA_lib_test_generated_bicubicTexture.cu.obj.cmake:198 (message): 1> Error generating 1> D:/tests/CUDA_lib_test/build/Debug/CUDA_lib_test_generated_bicubicTexture.cu.obj 1>Project : error PRJ0019: A tool returned an error code from "Building NVCC (Device) object Debug/CUDA_lib_test_generated_bicubicTexture.cu.obj" 1>Build log was saved at "file://d:\tests\CUDA_lib_test\build\CUDA_lib_test.dir\Debug\BuildLog.htm" [^] 1>CUDA_lib_test - 1 error(s), 0 warning(s) 5. As a part of this problem I don see why c++ compiler flags like (-DITK_IO_FACTORY_REGISTER_MANAGER or -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE - D_CRT_TIME_FUNCTIONS_NO_DEPRECATE) are propagated to NVidia ncvv.exe compiler and not to -Xcompiler? (see nvcc_call.txt inside of CUDA_lib_test.zip) I think that is another error in FindCUDA.cmake. Could you please fix it or recommend the solution for this problems. Thank you, -Denis. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | CUDA_lib_test.zip (13,953) 2011-05-17 08:51 https://public.kitware.com/Bug/file/3879/CUDA_lib_test.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2011-05-17 08:51 | Denis Shamonin | New Issue | ||||||||
2011-05-17 08:51 | Denis Shamonin | File Added: CUDA_lib_test.zip | ||||||||
2011-05-17 08:55 | Alexey Ozeritsky | Assigned To | => Alexey Ozeritsky | |||||||
2011-05-17 08:55 | Alexey Ozeritsky | Status | new => assigned | |||||||
2011-05-17 12:57 | James Bigler | Note Added: 0026517 | ||||||||
2011-05-18 03:44 | Denis Shamonin | Note Added: 0026540 | ||||||||
2011-05-18 11:32 | James Bigler | Note Added: 0026541 | ||||||||
2011-05-18 11:33 | Alexey Ozeritsky | Assigned To | Alexey Ozeritsky => | |||||||
2011-05-18 11:33 | Alexey Ozeritsky | Status | assigned => new | |||||||
2011-06-21 09:03 | Dzenan Zukic | Note Added: 0026935 | ||||||||
2011-06-21 16:16 | James Bigler | Note Added: 0026942 | ||||||||
2011-06-21 16:16 | James Bigler | Assigned To | => James Bigler | |||||||
2011-06-21 16:16 | James Bigler | Status | new => assigned | |||||||
2011-07-20 04:06 | Dzenan Zukic | Note Added: 0027055 | ||||||||
2012-01-20 03:34 | Marius Staring | Note Added: 0028370 | ||||||||
2012-01-20 03:51 | Marius Staring | Note Added: 0028371 | ||||||||
2012-01-20 12:11 | James Bigler | Note Added: 0028381 | ||||||||
2012-01-24 03:48 | Marius Staring | Note Added: 0028399 | ||||||||
2012-10-25 04:14 | Marius Staring | Note Added: 0031310 | ||||||||
2013-04-17 04:11 | Marcel Loose | Relationship added | related to 0014094 | |||||||
2016-06-10 14:28 | Kitware Robot | Note Added: 0041840 | ||||||||
2016-06-10 14:28 | Kitware Robot | Status | assigned => resolved | |||||||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|