Skip to content

Fix strcmp namespace in HIP#1980

Open
NamjaeChoi wants to merge 1 commit into
CEED:mainfrom
NamjaeChoi:main
Open

Fix strcmp namespace in HIP#1980
NamjaeChoi wants to merge 1 commit into
CEED:mainfrom
NamjaeChoi:main

Conversation

@NamjaeChoi
Copy link
Copy Markdown

strcmp requires std namespace when used from cstdlib header. It fails to compile with the latest hipcc.

@jeremylt
Copy link
Copy Markdown
Member

jeremylt commented Jun 5, 2026

which version of ROCm, for posterity?

@NamjaeChoi
Copy link
Copy Markdown
Author

We are currently testing 7.2.4.

@jeremylt
Copy link
Copy Markdown
Member

jeremylt commented Jun 5, 2026

I think @zatkins-dev 7.2 working well but 7.3 currently is buggy with the same code?

@NamjaeChoi
Copy link
Copy Markdown
Author

Additional information that may be helpful for clarity is that we are building libCEED through PETSc.

@zatkins-dev
Copy link
Copy Markdown
Collaborator

I think @zatkins-dev 7.2 working well but 7.3 currently is buggy with the same code?

At least on GFX906, 7.2+ cause a ton of test failures. 7.1.x is the last known good version.

@zatkins-dev
Copy link
Copy Markdown
Collaborator

This fix is totally reasonable though, we should fix namespacing issues

@NamjaeChoi
Copy link
Copy Markdown
Author

Actually the code compiles as is. Sorry for a confusion, even though the change isn't harmful. I realized that the libCEED version PETSc is pointing is missing #include <cstring>.

@jeremylt
Copy link
Copy Markdown
Member

jeremylt commented Jun 6, 2026

Ah the correct fix is probably to update the libCEED hash PETSc is using

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 this pull request may close these issues.

3 participants