Hip wrapper - #20
Hip wrapper#20
Conversation
|
Question: should cxxflags attribute from compiler definitions (in packages.yaml) be added when detected language is HIP? or should there be a separate Also, note that if it were processed like |
|
Did you check what CMake does? They implemented it twice, so presumably the second time they learned from mistakes from the past. See https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html#variable:CMAKE_%3CLANG%3E_FLAGS and various other pages, or sources. Edit: I did that:
That makes sense cause it's a different language. This is the case for ~5 years, so I would say let's do |
… not break without that change)
|
Commit ed41d0c depends on spack/spack#52826. This PR can be merged first ( |
|
You should add tests. |
|
@haampie thanks for the review. I think this is ready again |
haampie
left a comment
There was a problem hiding this comment.
See comments, you could adapt
… generate compiler error vs. dash error for malformed commands that leave language off of -x) Co-authored-by: Harmen Stoppels <me@harmenstoppels.nl>
Co-authored-by: Harmen Stoppels <me@harmenstoppels.nl>
and the latter tests more cases, so remove test_x_ignored_for_ld
|
Thanks for the review @haampie, I think this is ready again (all comments addressed) - I used the suggested commits nearly as is, except I renamed a couple functions. I also updated spack/spack-packages#4411 to point to this and it rebuilt everything successfully (currently one pipeline appears to have a non-build-related error) |
|
I think I missed the notifications for this. Generally lgtm, the machine suggests some simplifications, but more importantly the test not running is worth fixing ;p |
…gle expect_args check
|
@haampie bad test reference is addressed (and I also followed the suggestion to look for and fail on non-existent test names). Many of the nits I resolved as suggested (those are collapsed); for 3 of them I preferred what was already there. This changed cc.sh so I updated the pin in spack/spack-packages#4411 and it ran all pipelines relevant to this change successfully. |
Used by spack/spack-packages#4411
Pipelines there fully passed with latest commit 3e2f803
d6cc6b22b8ef4e