Skip to content

Commit

Permalink
Merge pull request #18 from apaszke/master
Browse files Browse the repository at this point in the history
Add --no-as-needed to make sure that cudart library gets linked
  • Loading branch information
nluehr committed Apr 19, 2016
2 parents ddd3f20 + c0c959b commit 0d4f8f4
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 0d4f8f4

Please sign in to comment.