Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: build with libc++ fails in std::vector<int8_t[16]> alpha_1 #1515

Open
AngryLoki opened this issue Jan 6, 2025 · 0 comments · May be fixed by #1516
Open

[Issue]: build with libc++ fails in std::vector<int8_t[16]> alpha_1 #1515

AngryLoki opened this issue Jan 6, 2025 · 0 comments · May be fixed by #1516

Comments

@AngryLoki
Copy link

Problem Description

Hi,

With LLVM libc++, compilation of hipBLASLt fails at

std::vector<int8_t[16]> alpha_1(matmul_descr.size());

with this error:

/usr/include/c++/v1/vector:1122:5: note: in instantiation of member function 'std::vector<char[16]>::__construct_at_end' requested here
 1122 |     __construct_at_end(__n);
      |     ^
rocblaslt_mat.cpp:396:24: note: in instantiation of member function 'std::vector<char[16]>::vector' requested here
  396 |         std::vector<int8_t[16]>         alpha_1(matmul_descr.size()); 

The issue was reported to llvm/llvm-project#98734, and according to discussion, std::vector of C arrays is not a part of c++17 (used currently in hipBLASLt).

See linked pull request with a fix.

Operating System

Gentoo

CPU

GPU

AMD Instinct MI250X

Other

No response

ROCm Version

ROCm 6.2.3

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@AngryLoki AngryLoki linked a pull request Jan 6, 2025 that will close this issue
@AngryLoki AngryLoki changed the title [Issue]: build with libc++ fails in std::vector<char[16]>::vector [Issue]: build with libc++ fails in std::vector<int8_t[16]> alpha_1 Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant