Skip to content

Commit

Permalink
simplify linkopt
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 15, 2023
1 parent 4ee145e commit bf6843f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ else
CPPOPT +=-m64
CUCCOPT +=-m64
ifeq "$(wildcard $(CUDA_HOME)/lib64)" "$(CUDA_HOME)/lib64"
ifeq ($(BACKEND),cuda)
LINKOPT=-L$(CUDA_HOME)/lib64 $(CUDART) -lm -lstdc++
else ifeq ($(BACKEND),cudastatic)
LINKOPT=-L$(CUDA_HOME)/lib64 $(CUDART) -lm -static-libgcc -static-libstdc++
endif
LINKOPT=-L$(CUDA_HOME)/lib64 $(CUDART)
endif
endif
endif
Expand Down

0 comments on commit bf6843f

Please sign in to comment.