Adding -pthread flag into CMakeLists.txt (#682)

Adding -pthread flag for linking issues into CMakeLists.txt

[ROCm/rccl commit: f525b8e1e6]
This commit is contained in:
Pedram Alizadeh
2023-02-10 17:22:30 -05:00
committed by GitHub
parent 93fa62b654
commit 29a0f74de1
+2 -1
View File
@@ -9,7 +9,8 @@ INCLUDE(CheckSymbolExists)
set( CMAKE_CXX_STANDARD 14 )
# Without this line, it will add -std=gnu++14 instead, which has some issues.
set( CMAKE_CXX_EXTENSIONS OFF )
#Adding pthread flag for linking
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
project(rccl CXX)
include(cmake/Dependencies.cmake)