42e4c0c1c9
- add patch from merged upstream llvm PR: https://www.github.com/llvm/llvm-project/pull/136133 (previous attempt) https://www.github.com/llvm/llvm-project/pull/144886 Upstream issue: https://www.github.com/ROCm/composable_kernel/issues/2887 Fixes build failure of `hipblaslt` with gcc15: ``` In file included from /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:27: In file included from /build/source/projects/hipblaslt/clients/common/include/hipblaslt_datatype2string.hpp:29: In file included from /build/source/projects/hipblaslt/library/src/amd_detail/include/auxiliary.hpp:29: In file included from /build/source/projects/hipblaslt/library/include/hipblaslt/hipblaslt.h:58: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_bfloat16.h:37: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_bfloat16.h:53: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_runtime.h:62: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_runtime.h:114: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/hip_runtime_api.h:578: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/texture_types.h:47: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/channel_descriptor.h:32: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_channel_descriptor.h:29: In file included from /nix/store/klmhyss10wmwknlcz7j3h2i4cqrcmnqg-clr-6.4.3/include/hip/amd_detail/amd_hip_vector_types.h:49: /nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/array:219:2: error: reference to __host__ function '__glibcxx_assert_fail' in __host__ __device__ function 219 | __glibcxx_requires_subscript(__n); | ^ /nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/debug/assertions.h:39:3: note: expanded from macro '__glibcxx_requires_subscript' 39 | __glibcxx_assert(_N < this->size()) | ^ /nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/x86_64-unknown-linux-gnu/bits/c++config.h:658:12: note: expanded from macro '__glibcxx_assert' 658 | std::__glibcxx_assert_fail(); \ | ^ /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:135:20: note: called by 'operator()' 135 | return rand_nans[pseudo_random_device(idx) % rand_nans.size()]; | ^ /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:39:27: note: called by 'fill_kernel<float, (lambda at /build/source/projects/hipblaslt/clients/common/src/hipblaslt_init_device.cpp:134:55)>' 39 | A[idx + offset] = f(idx + offset); | ^ /nix/store/042ckvfbpa2v36v12jd34jnwr274ph5r-gcc-prefix/include/c++/x86_64-unknown-linux-gnu/bits/c++config.h:652:3: note: '__glibcxx_assert_fail' declared here 652 | __glibcxx_assert_fail() | ^ ```