link library with -lrt; otherwise there is undefined reference to shm_open

[ROCm/rccl commit: ed401cc29b]
이 커밋은 다음에 포함됨:
jiakai가 2016-08-19 18:58:56 +08:00를 커밋했습니다
1 부모 337e8b1313
커밋 d74f2f154d
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -44,7 +44,7 @@ NVCC_GENCODE ?= -gencode=arch=compute_35,code=sm_35 \
CXXFLAGS := -I$(CUDA_INC) -fPIC -fvisibility=hidden
NVCUFLAGS := -ccbin $(CXX) $(NVCC_GENCODE) -lineinfo -std=c++11 -maxrregcount 96
# Use addprefix so that we can specify more than one path
LDFLAGS := $(addprefix -L,${CUDA_LIB}) -lcudart
LDFLAGS := $(addprefix -L,${CUDA_LIB}) -lcudart -lrt
ifeq ($(DEBUG), 0)
NVCUFLAGS += -O3