View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015697CMakeCMakepublic2015-08-14 16:372016-01-04 11:52
ReporterDominic Meiser 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMSVC 18.0.40629OSWindowsOS Version7
Product VersionCMake 3.2.2 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015697: CUDA separable compilation intermediate file doesn't get created
DescriptionWhen I compile with CUDA_SEPARABLE_COMPILATION=TRUE the custom command for the generation of the intermediate_link.obj does not get triggered. When I change line 1590 in FindCUDA.cmake (master version from earlier today) to `set(do_obj_build_rule TRUE)` the custom command does run and compilation succeeds. I don't see the bug here.

I'm seeing this behavior with cmake 3.2.2 and master revision 17ecfd8210.
Steps To Reproduceconfigure a cuda library target with CUDA_SEPARABLE_COMPILATION=TRUE and build.
Additional InformationThis is with cuda toolkit 7.0
TagsNo tags attached.
Attached Filespatch file icon 0001-FindCUDA.cmake-Fix-object-build-rule-for-separate-co.patch [^] (1,365 bytes) 2015-08-20 10:21 [Show Content]
patch file icon 0002-FindCUDA.cmake-Fix-object-build-rule-for-separate-co.patch [^] (1,361 bytes) 2015-08-20 11:34 [Show Content]

 Relationships

  Notes
(0039283)
Dominic Meiser (reporter)
2015-08-14 17:49

I must have made a mistake earlier. I cannot reproduce this with master anymore. Sorry for the bother.
(0039306)
Dominic Meiser (reporter)
2015-08-20 10:20

Turns out I wasn't able to reproduce the issue because I switched compilers to VS2012 and VS2010. But when I went back to VS 2013 the problem is reproducible.

It appears that the workaround for the object build rules used for VS2010 and VS2012 does not work for VS2013. Apparently the multilevel object dependency problem has been fixed in VS2013. The attached patch solves the problem for me.
(0039307)
Dominic Meiser (reporter)
2015-08-20 10:28

See note #0039306 for explanation of why I wasn't able to reproduce this earlier.
(0039310)
Brad King (manager)
2015-08-20 11:14

> + if (MSVC_VERSION GREATER 1599 AND NOT MSVC_VERSION LESS 1800)

Did you mean

+ if (MSVC_VERSION GREATER 1599 AND MSVC_VERSION LESS 1800)

?
(0039311)
Dominic Meiser (reporter)
2015-08-20 11:30

Yes, you are correct. I'm updating the patch.
(0039312)
Brad King (manager)
2015-08-20 11:52

Re 0015697:0039311: Thanks, applied:

 FindCUDA: Fix object build rule for separate compilation on VS 2013+
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9b2f6992 [^]
(0039313)
Dominic Meiser (reporter)
2015-08-20 11:57

Great, thanks.
(0040118)
Robert Maynard (manager)
2016-01-04 11:52

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-08-14 16:37 Dominic Meiser New Issue
2015-08-14 17:49 Dominic Meiser Note Added: 0039283
2015-08-17 09:38 Brad King Status new => resolved
2015-08-17 09:38 Brad King Resolution open => unable to reproduce
2015-08-20 10:20 Dominic Meiser Note Added: 0039306
2015-08-20 10:21 Dominic Meiser File Added: 0001-FindCUDA.cmake-Fix-object-build-rule-for-separate-co.patch
2015-08-20 10:28 Dominic Meiser Note Added: 0039307
2015-08-20 10:28 Dominic Meiser Status resolved => feedback
2015-08-20 10:28 Dominic Meiser Resolution unable to reproduce => reopened
2015-08-20 10:42 Brad King Status feedback => new
2015-08-20 10:42 Brad King Resolution reopened => open
2015-08-20 11:14 Brad King Note Added: 0039310
2015-08-20 11:30 Dominic Meiser Note Added: 0039311
2015-08-20 11:34 Dominic Meiser File Added: 0002-FindCUDA.cmake-Fix-object-build-rule-for-separate-co.patch
2015-08-20 11:52 Brad King Note Added: 0039312
2015-08-20 11:53 Brad King Status new => resolved
2015-08-20 11:53 Brad King Resolution open => fixed
2015-08-20 11:53 Brad King Fixed in Version => CMake 3.4
2015-08-20 11:53 Brad King Target Version => CMake 3.4
2015-08-20 11:57 Dominic Meiser Note Added: 0039313
2016-01-04 11:52 Robert Maynard Note Added: 0040118
2016-01-04 11:52 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team