2024-08-12 06:08:38 -06:00
|
|
|
fbgemm_commit := v0.8.0
|
2024-07-20 11:02:04 -06:00
|
|
|
|
|
|
|
build-fbgemm:
|
2024-09-07 05:19:43 -06:00
|
|
|
@if [ ! -d "fbgemm" ]; then \
|
|
|
|
git clone https://github.com/pytorch/FBGEMM.git fbgemm; \
|
|
|
|
fi
|
2024-07-23 14:39:43 -06:00
|
|
|
cd fbgemm && git fetch && git checkout $(fbgemm_commit) && \
|
2024-07-20 11:02:04 -06:00
|
|
|
git submodule update --init --recursive && \
|
|
|
|
cd fbgemm_gpu && \
|
|
|
|
pip install -r requirements.txt && \
|
|
|
|
CUDA_ARCH_LIST="8.0;9.0a" NVCC_GENCODE="-gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_90a,code=sm_90a" TORCH_CUDA_ARCH_LIST="8.0;9.0a" python setup.py --package_variant genai build
|
|
|
|
|
|
|
|
install-fbgemm: build-fbgemm
|
|
|
|
cd fbgemm/fbgemm_gpu && \
|
|
|
|
CUDA_ARCH_LIST="8.0;9.0a" NVCC_GENCODE="-gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_90a,code=sm_90a" TORCH_CUDA_ARCH_LIST="8.0;9.0a" python setup.py --package_variant genai install
|