Project

General

Profile

Bug #2022

Compilation fails with CUDA and gcc 5

Added by Semen Yesylevskyy over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Affected version - extra info:
Affected version:
Difficulty:
simple
Close

Description

When compiling with CUDA and gcc 5+ compilation fails on libgromacs_generated_nbnxn_cuda.cu.
This problem is known: https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-users/2016-May/105608.html.
and it is very confusing for unexperienced users since cmake indicates no problems but the build fails.
Cmake should either emit an error when such combination of nvcc and gcc occurs or the fix indicated in the link should be added.


Related issues

Related to GROMACS - Task #1982: work around compilation error with nvcc + glibc 2.23Closed

Associated revisions

Revision 0bda8e71 (diff)
Added by Mark Abraham over 3 years ago

Work around glibc 2.23 with CUDA

Note: Cherry-pick of e2cd2e2e from the 2016 branch.

Fixes #2022

Change-Id: Id9881efb3f26af341b9c89b4bd1f983a2149c9e4

History

#1 Updated by Mark Abraham over 3 years ago

  • Related to Task #1982: work around compilation error with nvcc + glibc 2.23 added

#2 Updated by Mark Abraham over 3 years ago

Technically the problem lies with using a version of glibc (upon which gcc depends) that no released version of CUDA supports, so a proper action is to use gcc 4.9. However the work-around there is indeed effective.

We could try to backport our workaround from #1982.

#3 Updated by Gerrit Code Review Bot over 3 years ago

Gerrit received a related patchset '1' for Issue #2022.
Uploader: Szilárd Páll ()
Change-Id: Id9881efb3f26af341b9c89b4bd1f983a2149c9e4
Gerrit URL: https://gerrit.gromacs.org/6149

#4 Updated by Szilárd Páll over 3 years ago

  • Status changed from New to Feedback wanted
  • Difficulty simple added
  • Difficulty deleted (uncategorized)

#5 Updated by Mark Abraham over 3 years ago

  • Status changed from Feedback wanted to Resolved

#6 Updated by Mark Abraham over 3 years ago

  • Status changed from Resolved to Closed
  • Target version set to 5.1.4

Also available in: Atom PDF