Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Paszke <adam.paszke@gmail.com>2016-04-13 17:04:38 +0300
committerAdam Paszke <adam.paszke@gmail.com>2016-04-13 17:04:38 +0300
commitc0c959b1be1dfc5868d40e2c60e05ad17d7abec2 (patch)
tree73be59dc0cd22f39152a912d2a637c1a6190788d /Makefile
parentb16cc5d197a03ae2ef21c131a63805b36c15b2f5 (diff)
Add --no-as-needed to make sure that cudart library gets liked
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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