use ?= for OPENMPI_DIR so it can be overriden

This commit is contained in:
Andrej Karpathy 2024-06-26 16:06:54 +00:00
parent 2a8f82f14f
commit 7c283df9c4

View file

@ -208,7 +208,7 @@ else
endif
# Attempt to find and include OpenMPI on the system
OPENMPI_DIR = /usr/lib/x86_64-linux-gnu/openmpi
OPENMPI_DIR ?= /usr/lib/x86_64-linux-gnu/openmpi
OPENMPI_LIB_PATH = $(OPENMPI_DIR)/lib/
OPENMPI_INCLUDE_PATH = $(OPENMPI_DIR)/include/
ifeq ($(NO_USE_MPI), 1)