From c0c959b1be1dfc5868d40e2c60e05ad17d7abec2 Mon Sep 17 00:00:00 2001 From: Adam Paszke Date: Wed, 13 Apr 2016 10:04:38 -0400 Subject: [PATCH] Add --no-as-needed to make sure that cudart library gets liked --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3f675e..7779120 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ NVCUFLAGS += -Xptxas -v -Xcompiler -Wall,-Wextra CXXFLAGS += -Wall -Wextra endif -LDFLAGS := -L$(CUDA_HOME)/lib64 -lcudart +LDFLAGS := -Wl,--no-as-needed -L$(CUDA_HOME)/lib64 -lcudart MPIFLAGS := -I$(MPI_HOME)/include -L$(MPI_HOME)/lib -lmpi TSTINC := -Ibuild/include -Itest/include