Adding -pthread flag for linking issues into CMakeLists.txt and src/Makefile (#31)
[ROCm/rccl-tests commit: 255750b094]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
61fd36c006
Коммит
cd256748c0
@@ -1,6 +1,8 @@
|
||||
# ########################################################################
|
||||
# Copyright 2022 Advanced Micro Devices, Inc.
|
||||
# ########################################################################
|
||||
#Adding pthread flag for linking
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.3 FATAL_ERROR)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ HIPCUFLAGS += -I$(ROCM_PATH)/include
|
||||
HIPCUFLAGS += -I$(ROCM_PATH)/include/rccl
|
||||
HIPCUFLAGS += -I$(ROCM_PATH)/hip/include/hip
|
||||
LDFLAGS += -L$(ROCM_PATH)/lib -lhsa-runtime64 -lrt
|
||||
HIPLDFLAGS += $(CUSTOM_RCCL_LIB) -L$(ROCM_PATH)/lib -lhsa-runtime64 -lrt
|
||||
HIPLDFLAGS += $(CUSTOM_RCCL_LIB) -L$(ROCM_PATH)/lib -lhsa-runtime64 -lrt -pthread
|
||||
|
||||
ifeq ($(DEBUG), 0)
|
||||
HIPCUFLAGS += -O3
|
||||
|
||||
Ссылка в новой задаче
Block a user