Skip to content

Commit

Permalink
[AMD][build][docker][fix][ApolloAuto#82][ApolloAuto#86] Add symlinks …
Browse files Browse the repository at this point in the history
…creation

Added a missing `-s` flag to the `cp` command to create a symlink

[testing]
Now a symlinks are created instead of files copying
  • Loading branch information
alexpetersburg committed Jul 3, 2022
1 parent 062f98e commit 2c8ec38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/build/installers/install_migraphx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ wget --load-cookies /tmp/cookies.txt \
tar xzf "${PKG_NAME}"
mv "${PKG_NAME%.tar.gz}" /opt/rocm/migraphx

cp -rLf "/opt/rocm/migraphx/include/." "/opt/rocm/include/"
cp -rLf "/opt/rocm/migraphx/lib/." "/opt/rocm/lib/"
cp -rLfs "/opt/rocm/migraphx/include/." "/opt/rocm/include/"
cp -rLfs "/opt/rocm/migraphx/lib/." "/opt/rocm/lib/"

# Cleanup
rm -f "${PKG_NAME}"
Expand Down
4 changes: 2 additions & 2 deletions docker/build/installers/install_rpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pushd rpp
make -j$(nproc)
make install
popd
cp -rLf "/opt/rocm/rpp/include/." "/opt/rocm/include/"
cp -rLf "/opt/rocm/rpp/lib/." "/opt/rocm/lib/"
cp -rLfs "/opt/rocm/rpp/include/." "/opt/rocm/include/"
cp -rLfs "/opt/rocm/rpp/lib/." "/opt/rocm/lib/"

rm -fr rpp
ok "Successfully installed RPP"

0 comments on commit 2c8ec38

Please sign in to comment.