Improve makefile to avoid LD_LIBRARY_PATH

This commit is contained in:
Sourav Chakraborty authored and Wenkai Du committed 2020-04-10 14:45:17 -07:00
1 parent 6932a583e7
commit 07b8876277
1 file changed
+2 -2
+2 -2
View File
@@ -37,11 +37,11 @@ endif
BUILDDIR ?= ../build
ifneq ($(NCCL_HOME), "")
HIPCUFLAGS += -I$(NCCL_HOME)/include/
HIPLDFLAGS += -L$(NCCL_HOME)/lib
HIPLDFLAGS += -Wl,-rpath,$(NCCL_HOME)/lib -L$(NCCL_HOME)/lib
endif
ifeq ($(MPI), 1)
HIPCUFLAGS += -DMPI_SUPPORT -I${MPI_HOME}/include
HIPCUFLAGS += -DMPI_SUPPORT -I${MPI_HOME}/include -I${MPI_HOME}/include/mpi
HIPLDFLAGS += -L${MPI_HOME}/lib -lmpi
else ifeq ($(MPICH), 1)
HIPCUFLAGS += -DMPI_SUPPORT -I/usr/include/mpich