From 15d17c58a7852fe0608c891592805dd0b8ce2f66 Mon Sep 17 00:00:00 2001 From: Gregory Shtrasberg <156009573+gshtras@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:26:28 -0500 Subject: [PATCH] Rpd build arg (#269) * Added build arg for RPD build to disable it until its build is fixed for ROCm6.3 * Passing the arg to the final stage --- Dockerfile.rocm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.rocm b/Dockerfile.rocm index f5b3947ba45..1f9d71e6b0c 100644 --- a/Dockerfile.rocm +++ b/Dockerfile.rocm @@ -13,6 +13,7 @@ ARG BUILD_PYTORCH="1" # If "0", it is copied in from the local working directory. ARG REMOTE_VLLM="0" ARG USE_CYTHON="0" +ARG BUILD_RPD="1" # ----------------------- # vLLM base image @@ -252,12 +253,13 @@ RUN --mount=type=bind,from=export_pytorch,src=/,target=/install \ fi RUN python3 -m pip install --upgrade huggingface-hub[cli] - -RUN git clone -b nvtx_enabled https://github.com/ROCm/rocmProfileData.git \ +ARG BUILD_RPD +RUN if [ ${BUILD_RPD} -eq "1" ]; then \ + git clone -b nvtx_enabled https://github.com/ROCm/rocmProfileData.git \ && cd rocmProfileData/rpd_tracer \ && pip install -r requirements.txt && cd ../ \ && make && make install \ - && cd hipMarker && python setup.py install + && cd hipMarker && python setup.py install ; fi # Install vLLM (and gradlib) # Make sure punica kernels are built (for LoRA)