Add 'projects/rocprofiler-sdk/' from commit 'bf0fad1d5406fbc51403ba1aa9621a9d4a9bce2b'
git-subtree-dir: projects/rocprofiler-sdk git-subtree-mainline:50a90550e9git-subtree-split:bf0fad1d54
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
ARG BASE_IMAGE=rocm/rocm-terminal
|
||||
FROM $BASE_IMAGE
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ARG BRANCH=amd-staging
|
||||
|
||||
RUN git clone -b ${BRANCH} https://github.com/ROCm/rocprofiler-sdk.git rocprofiler-sdk-source && \
|
||||
python3 -m pip install -r rocprofiler-sdk-source/requirements.txt && \
|
||||
sudo apt update && \
|
||||
sudo apt install -y libdw-dev libsqlite3-dev && \
|
||||
cmake -B rocprofiler-sdk-build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DROCPROFILER_BUILD_{SAMPLES,TESTS,BENCHMARK}=ON -DPython3_EXECUTABLE=$(which python3) -DCMAKE_INSTALL_PREFIX=$(realpath /opt/rocm) rocprofiler-sdk-source && \
|
||||
cmake --build rocprofiler-sdk-build --target all --parallel 16 && \
|
||||
sudo cmake --build rocprofiler-sdk-build --target install && \
|
||||
sudo rm -rf rocprofiler-sdk-source rocprofiler-sdk-build
|
||||
Reference in New Issue
Block a user