Add --no-as-needed to make sure that cudart library gets liked
This commit is contained in:
parent
b16cc5d197
commit
c0c959b1be
2
Makefile
2
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user