forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure that `libcudart` is a shared library dependency.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 4182db73f9e38930027a6766c7ab649783510ac0 Mon Sep 17 00:00:00 2001 | ||
From: John Kirkham <[email protected]> | ||
Date: Tue, 7 May 2019 03:54:54 -0400 | ||
Subject: [PATCH] Link `libcudart` dynamically | ||
|
||
--- | ||
src/Makefile | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git src/Makefile src/Makefile | ||
index 2d32dca78..b6022124a 100644 | ||
--- src/Makefile | ||
+++ src/Makefile | ||
@@ -29,7 +29,7 @@ LIBTARGET := $(LIBNAME:%=%.$(NCCL_MAJOR).$(NCCL_MINOR).$(NCCL_PATCH)) | ||
STATICLIBTARGET := $(STATICLIBNAME) | ||
LIBOBJ := $(LIBSRCFILES:%.cc=$(OBJDIR)/%.o) | ||
DEPFILES := $(LIBOBJ:%.o=%.d) | ||
-LDFLAGS += -L${CUDA_LIB} -lcudart_static -lpthread -lrt -ldl | ||
+LDFLAGS += -L${CUDA_LIB} -lcudart -lpthread -lrt -ldl | ||
|
||
DEVICELIB := $(BUILDDIR)/obj/collectives/device/colldevice.a | ||
|