File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11# ########################################################################
22# Copyright 2022 Advanced Micro Devices, Inc.
33# ########################################################################
4+ #Adding pthread flag for linking
5+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread" )
46
57cmake_minimum_required (VERSION 3.16.3 FATAL_ERROR)
68
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ HIPCUFLAGS += -I$(ROCM_PATH)/include
2727HIPCUFLAGS += -I$(ROCM_PATH ) /include/rccl
2828HIPCUFLAGS += -I$(ROCM_PATH ) /hip/include/hip
2929LDFLAGS += -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt
30- HIPLDFLAGS += $(CUSTOM_RCCL_LIB ) -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt
30+ HIPLDFLAGS += $(CUSTOM_RCCL_LIB ) -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt -pthread
3131
3232ifeq ($(DEBUG ) , 0)
3333HIPCUFLAGS += -O3
You can’t perform that action at this time.
0 commit comments