rocm-openmp-extras: do not mutate llvm-amdgpu#49026
Conversation
|
@estewart08 can you review this PR? This PR modifies the following package(s), for which you are listed as a maintainer:
|
|
At first glance it looks like running an openmp or fortran program will fail due to these links being gone. Is it feasible that these links are created in llvm-amdgpu? If not, is there another recommendation? In a non-spack build, flang executables will be installed into the bin directory of llvm. Due to spack having separate install prefixes, this workaround was needed. Similar story for the libdevice directory (which will no longer exist when a future ROCm brings in that update). |
|
Normally openmp is built as a runtime during the llvm build (just built clang builds runtimes) so these things stay in the same prefix. I don't really get the rocm-openmp-extras package to be honest. Notice that changes made by rocm-openmp-extras to llvm-amdgpu are not persisted for binaries we distribute, meaning that probably the package is broken. Would you be able to improve this? I just submitted the PR to highlight the problem. |
|
Is it necessary to use flang-legacy for rocm-openmp-extras? If we could use flang-new built from llvm we won't need the flang symlinks. |
Currently, yes it is. Flang-new is in a preproduction state and is not in ROCm yet. |
Upstream you are correct, the default build method is to use That being said, I do want to move ROCm to use |
|
Sounds like you want to build flang as part of llvm whether it's "legacy" or flang-new/flang. As for openmp, I don't see why it's removed from llvm-amdgpu, you can run cmake(...) there? We still do that for old spack/var/spack/repos/builtin/packages/llvm/package.py Lines 1194 to 1225 in fcc85ad |
Flang-new definitely will be built as a part of llvm. The goal, at least when I created the rocm-openmp-extras recipe, was to mimic the ROCm build. At the time the I would prefer to do the bare minimum to fix this issue: #48941. This is why I suggested creating those links in the Then when ROCm switches to |
|
The only time you can put files in the You cannot and should not expect the dependency's prefix to be writable (e.g. upstreams, externals, future Spack features). |
|
This pull request has been automatically marked as stale because it has not had any activity in the last 6 months. It will be closed in 30 days if there is no further activity. |
|
This pull request was closed because it had no activity for 30 days after being marked stale. If you feel this is in error, please feel free to reopen this pull request. |
rocm-openmp-extrasshouldn't make changes to the prefix ofllvm-amdgpu.Ref #48941