Update Makefile-fbgemm

Added Directory check for FBGEMM repository cloning.
This commit is contained in:
Vallepu Vamsi Krishna 2024-09-04 12:01:56 +05:30 committed by GitHub
parent 6cb42f49ae
commit 0c7fddcfef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 && \