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" )
46macro (check_mpi mpi_compiler mpi_lib_a mpi_lib_so)
57 find_program (MPI_MPICXX ${mpi_compiler} )
68 if (MPI_MPICXX)
Original file line number Diff line number Diff line change 2626HIPCUFLAGS += -I$(ROCM_PATH ) /include
2727HIPCUFLAGS += -I$(ROCM_PATH ) /include/hip
2828LDFLAGS += -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt
29- HIPLDFLAGS += $(CUSTOM_RCCL_LIB ) -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt
29+ HIPLDFLAGS += $(CUSTOM_RCCL_LIB ) -L$(ROCM_PATH ) /lib -lhsa-runtime64 -lrt -pthread
3030
3131ifeq ($(DEBUG ) , 0)
3232HIPCUFLAGS += -O3
You can’t perform that action at this time.
0 commit comments