-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18854 from Flamefire/20230922152922_new_pr_GCCcor…
…e1220 add patch to improve CUDA 11 compatibility of `GCCcore/12.2.0` and `GCCcore/12.3.0`
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
easybuild/easyconfigs/g/GCCcore/GCCcore-12.2.0_improve-cuda-compatibility.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The GCC stdlib uses a GCC feature not supported by nvcc until CUDA 12. | ||
I.e. CUDA 12 does not support GCC 12 (only GCC <= 11) erroring at | ||
> if ((void*)(this->*(&time_get::do_get)) == (void*)(&time_get::do_get)) | ||
|
||
As the same isn't supported by clang use the same fix. | ||
See https://gcc.gnu.org/bugzilla//show_bug.cgi?id=104990 | ||
|
||
Author: Alexander Grund (TU Dresden) | ||
|
||
--- gcc-12.2.0-orig/libstdc++-v3/include/bits/locale_facets_nonio.tcc | ||
+++ gcc-12.2.0/libstdc++-v3/include/bits/locale_facets_nonio.tcc | ||
@@ -1465,7 +1465,7 @@ | ||
ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); | ||
__err = ios_base::goodbit; | ||
bool __use_state = false; | ||
-#if __GNUC__ >= 5 && !defined(__clang__) | ||
+#if __GNUC__ >= 5 && !defined(__clang__) && (!defined(__CUDACC__) || (__CUDACC_VER_MAJOR__ >= 12)) | ||
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wpmf-conversions" | ||
// Nasty hack. The C++ standard mandates that get invokes the do_get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters