Skip to content

Instantly share code, notes, and snippets.

@johntyree
Last active December 11, 2015 21:58
Show Gist options
  • Save johntyree/4665669 to your computer and use it in GitHub Desktop.
Save johntyree/4665669 to your computer and use it in GitHub Desktop.
Header to work around CUDA incompatibility with GCC 4.7+.
// Header for compilation with GCC-4.7
#if defined(__GNUC__)
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
#undef _GLIBCXX_ATOMIC_BUILTINS
#undef _GLIBCXX_USE_INT128
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment