Adding -pthread flag for linking issues into CMakeLists.txt and src/Makefile (#31)

This commit is contained in:
Pedram Alizadeh
2023-03-02 11:05:25 -05:00
committed by GitHub
parent 3fbd3280ce
commit 255750b094
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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