Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/rocprofiler-sdk/docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ENV LLVM_PATH=/opt/rocm/llvm
ENV CMAKE_PREFIX_PATH=/opt/rocm
ENV PATH=/opt/rh/gcc-toolset-11/root/usr/bin:/opt/rocm/bin:/opt/rocm/llvm/bin:/usr/local/bin:~/.local/bin:${PATH}
ENV LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/llvm/lib:${LD_LIBRARY_PATH}

Check warning on line 18 in projects/rocprofiler-sdk/docker/Dockerfile.ci

View workflow job for this annotation

GitHub Actions / Build CI Base Image • gfx94X • sles-15.6

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

# Debian/Ubuntu
RUN set-euo pipefail; \
Expand Down Expand Up @@ -58,11 +58,11 @@
echo -e "[amdgpu]\nname=amdgpu\nbaseurl=https://repo.radeon.com/amdgpu/latest/rhel/9.6/main/x86_64/\nenabled=1\npriority=50\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > /etc/yum.repos.d/amdgpu.repo; \
fi; \
dnf clean all; \
dnf install -y rocm-openmp rocm-openmp-sdk rocm-llvm-devel hipify-clang libsqlite3x-devel elfutils-devel; \
dnf install -y rocm-openmp rocm-openmp-sdk rocm-llvm-devel hipify-clang libsqlite3x-devel openmpi-devel elfutils-devel; \
python3 -m pip install -U awscli pipx; \
python3 -m venv rocprofiler-sdk; \
source rocprofiler-sdk/bin/activate; \
export PATH=/opt/rh/gcc-toolset-11/root/usr/bin:${PATH}; \
export PATH=/opt/rh/gcc-toolset-11/root/usr/bin:/usr/lib64/openmpi/bin:${PATH}; \
Comment thread
yhuiYH marked this conversation as resolved.
Resolved
python3 -m pip install --upgrade pip; \
python3 -m pip install --upgrade -r /root/requirements.txt; \
echo -e 'PKG_CONFIG_PATH="/opt/amdgpu/lib64/pkgconfig:/opt/amdgpu/lib/pkgconfig:/opt/amdgpu/lib/$(uname -p)-linux-gnu/pkgconfig:${PKG_CONFIG_PATH}"\nexport PKG_CONFIG_PATH' > /etc/profile.d/amdgpu-pkg-config.sh; \
Expand Down
Loading