From eabbbbda2340d6cab12040ff54481f3b7d633ead Mon Sep 17 00:00:00 2001 From: Vallepu Vamsi Krishna Date: Sat, 7 Sep 2024 16:49:43 +0530 Subject: [PATCH] Add Directory Check to Prevent Redundant Cloning in Build Process (#2486) Update Makefile-fbgemm Added Directory check for FBGEMM repository cloning. --- server/Makefile-fbgemm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/Makefile-fbgemm b/server/Makefile-fbgemm index 5f3c0eaa..3b8061a1 100644 --- a/server/Makefile-fbgemm +++ b/server/Makefile-fbgemm @@ -1,7 +1,9 @@ fbgemm_commit := v0.8.0 build-fbgemm: - git clone https://github.com/pytorch/FBGEMM.git fbgemm && \ + @if [ ! -d "fbgemm" ]; then \ + git clone https://github.com/pytorch/FBGEMM.git fbgemm; \ + fi cd fbgemm && git fetch && git checkout $(fbgemm_commit) && \ git submodule update --init --recursive && \ cd fbgemm_gpu && \