Skip to content

Commit

Permalink
Add --no-as-needed to make sure that cudart library gets liked
Browse files Browse the repository at this point in the history
  • Loading branch information
apaszke committed Apr 13, 2016
1 parent b16cc5d commit c0c959b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c0c959b

Please sign in to comment.