From owner-svn-ports-head@freebsd.org Sat Aug 17 19:24:49 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5A837CEE58; Sat, 17 Aug 2019 19:24:49 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469qrd1kcgz4fTX; Sat, 17 Aug 2019 19:24:49 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1E0C91E664; Sat, 17 Aug 2019 19:24:49 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7HJOmRZ031033; Sat, 17 Aug 2019 19:24:48 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7HJOm1F031027; Sat, 17 Aug 2019 19:24:48 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201908171924.x7HJOm1F031027@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 17 Aug 2019 19:24:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509163 - in head/devel: . pthreadpool pthreadpool/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . pthreadpool pthreadpool/files X-SVN-Commit-Revision: 509163 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 19:24:49 -0000 Author: yuri Date: Sat Aug 17 19:24:47 2019 New Revision: 509163 URL: https://svnweb.freebsd.org/changeset/ports/509163 Log: New port: devel/pthreadpool: Pthread-based thread pool for C/C++ for arrays parallelization Added: head/devel/pthreadpool/ head/devel/pthreadpool/Makefile (contents, props changed) head/devel/pthreadpool/distinfo (contents, props changed) head/devel/pthreadpool/files/ head/devel/pthreadpool/files/patch-CMakeLists.txt (contents, props changed) head/devel/pthreadpool/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Aug 17 19:13:04 2019 (r509162) +++ head/devel/Makefile Sat Aug 17 19:24:47 2019 (r509163) @@ -3980,6 +3980,7 @@ SUBDIR += psvn SUBDIR += pth SUBDIR += pth-hard + SUBDIR += pthreadpool SUBDIR += pthsem SUBDIR += ptlib SUBDIR += ptmalloc Added: head/devel/pthreadpool/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pthreadpool/Makefile Sat Aug 17 19:24:47 2019 (r509163) @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= pthreadpool +PORTVERSION= g20181121 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Pthread-based thread pool for C/C++ for arrays parallelization + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/fxdiv.h:devel/fxdiv + +USES= cmake localbase +USE_GITHUB= yes +GH_ACCOUNT= Maratyszcza +GH_TAGNAME= 6673a4c +USE_LDCONFIG= yes + +CMAKE_OFF= PTHREADPOOL_BUILD_TESTS PTHREADPOOL_BUILD_BENCHMARKS +CMAKE_ON= BUILD_SHARED_LIBS + +PLIST_FILES= include/pthreadpool.h \ + lib/libpthreadpool.so + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DPTHREADPOOL_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include Added: head/devel/pthreadpool/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pthreadpool/distinfo Sat Aug 17 19:24:47 2019 (r509163) @@ -0,0 +1,3 @@ +TIMESTAMP = 1566067037 +SHA256 (Maratyszcza-pthreadpool-g20181121-6673a4c_GH0.tar.gz) = aa8a46618356c910ec9e3dabb310253ea76b314f9875611edd7fa374c0bf6f80 +SIZE (Maratyszcza-pthreadpool-g20181121-6673a4c_GH0.tar.gz) = 12742 Added: head/devel/pthreadpool/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pthreadpool/files/patch-CMakeLists.txt Sat Aug 17 19:24:47 2019 (r509163) @@ -0,0 +1,28 @@ +--- CMakeLists.txt.orig 2018-11-21 22:52:31 UTC ++++ CMakeLists.txt +@@ -34,7 +34,7 @@ SET(CONFU_DEPENDENCIES_SOURCE_DIR ${CMAKE_SOURCE_DIR}/ + SET(CONFU_DEPENDENCIES_BINARY_DIR ${CMAKE_BINARY_DIR}/deps + CACHE PATH "Confu-style dependencies binary directory") + +-IF(NOT DEFINED FXDIV_SOURCE_DIR) ++IF(FALSE AND NOT DEFINED FXDIV_SOURCE_DIR) + MESSAGE(STATUS "Downloading FXdiv to ${CONFU_DEPENDENCIES_SOURCE_DIR}/fxdiv (define FXDIV_SOURCE_DIR to avoid it)") + CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CONFU_DEPENDENCIES_BINARY_DIR}/fxdiv-download/CMakeLists.txt") + EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . +@@ -109,14 +109,14 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + ENDIF() + + # ---[ Configure FXdiv +-IF(NOT TARGET fxdiv) ++IF(FALSE AND NOT TARGET fxdiv) + SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "") + SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "") + ADD_SUBDIRECTORY( + "${FXDIV_SOURCE_DIR}" + "${CONFU_DEPENDENCIES_BINARY_DIR}/fxdiv") + ENDIF() +-TARGET_LINK_LIBRARIES(pthreadpool PRIVATE fxdiv) ++#TARGET_LINK_LIBRARIES(pthreadpool PRIVATE fxdiv) + + INSTALL(TARGETS pthreadpool + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} Added: head/devel/pthreadpool/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pthreadpool/pkg-descr Sat Aug 17 19:24:47 2019 (r509163) @@ -0,0 +1,12 @@ +pthreadpool is a pthread-based thread pool implementation. It is intended to +provide functionality of #pragma omp parallel for for POSIX systems where OpenMP +is not available. + +Features: +* C interface (C++-compatible) +* Run on user-specified or auto-detected number of threads +* Work-stealing scheduling for efficient work balancing +* Compatible with Linux, macOS, and Native Client environments +* Covered with unit tests and microbenchmarks + +WWW: https://github.com/Maratyszcza/pthreadpool