/aosp_15_r20/external/pthreadpool/ |
H A D | CMakeLists.txt | 4 PROJECT(pthreadpool C CXX) project 18 OPTION(PTHREADPOOL_BUILD_TESTS "Build pthreadpool unit tests" ON) 19 OPTION(PTHREADPOOL_BUILD_BENCHMARKS "Build pthreadpool micro-benchmarks" ON) 21 SET(PTHREADPOOL_BUILD_TESTS OFF CACHE BOOL "Build pthreadpool unit tests") 22 SET(PTHREADPOOL_BUILD_BENCHMARKS OFF CACHE BOOL "Build pthreadpool micro-benchmarks") 69 # ---[ pthreadpool library 94 INSTALL(FILES include/pthreadpool.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) 97 ADD_LIBRARY(pthreadpool ${PTHREADPOOL_SRCS}) target 99 ADD_LIBRARY(pthreadpool SHARED ${PTHREADPOOL_SRCS}) target 101 ADD_LIBRARY(pthreadpool STATIC ${PTHREADPOOL_SRCS}) target [all …]
|
H A D | BUILD.bazel | 5 ############################## pthreadpool library ############################# 32 name = "pthreadpool", 116 "include/pthreadpool.h", 160 srcs = ["test/pthreadpool.cc"], 166 ":pthreadpool", 188 ":pthreadpool", 201 ":pthreadpool",
|
H A D | README.md | 1 # pthreadpool chapter 3 …20%22Simplified%22%20License-blue.svg)](https://github.com/Maratyszcza/pthreadpool/blob/master/LIC… 4 …s](https://img.shields.io/travis/Maratyszcza/pthreadpool.svg)](https://travis-ci.org/Maratyszcza/p… 6 **pthreadpool** is a portable and efficient thread pool implementation.
|
H A D | METADATA | 1 name: "pthreadpool" 2 description: "pthreadpool is a portable and efficient thread pool implementation. It provides simil… 6 value: "https://github.com/Maratyszcza/pthreadpool" 10 value: "https://github.com/Maratyszcza/pthreadpool"
|
/aosp_15_r20/external/pthreadpool/src/ |
H A D | threadpool-object.h | 66 struct pthreadpool* threadpool; 584 struct PTHREADPOOL_CACHELINE_ALIGNED pthreadpool { struct 709 PTHREADPOOL_STATIC_ASSERT(sizeof(struct pthreadpool) % PTHREADPOOL_CACHELINE_SIZE == 0, argument 712 PTHREADPOOL_INTERNAL struct pthreadpool* pthreadpool_allocate( 716 struct pthreadpool* threadpool); 718 typedef void (*thread_function_t)(struct pthreadpool* threadpool, struct thread_info* thread); 721 struct pthreadpool* threadpool, 731 struct pthreadpool* threadpool, 735 struct pthreadpool* threadpool, 739 struct pthreadpool* threadpool, [all …]
|
H A D | gcd.c | 25 struct pthreadpool* threadpool = (struct pthreadpool*) arg; in thread_main() 45 struct pthreadpool* pthreadpool_create(size_t threads_count) { in pthreadpool_create() 60 struct pthreadpool* threadpool = pthreadpool_allocate(threads_count); in pthreadpool_create() 77 struct pthreadpool* threadpool, in pthreadpool_parallelize() 128 void pthreadpool_destroy(struct pthreadpool* threadpool) { in pthreadpool_destroy()
|
H A D | memory.c | 22 PTHREADPOOL_INTERNAL struct pthreadpool* pthreadpool_allocate( in pthreadpool_allocate() 27 …const size_t threadpool_size = sizeof(struct pthreadpool) + threads_count * sizeof(struct thread_i… in pthreadpool_allocate() 28 struct pthreadpool* threadpool = NULL; in pthreadpool_allocate() 54 struct pthreadpool* threadpool) in pthreadpool_deallocate() 58 …const size_t threadpool_size = sizeof(struct pthreadpool) + threadpool->threads_count.value * size… in pthreadpool_deallocate()
|
H A D | pthreads.c | 80 static void checkin_worker_thread(struct pthreadpool* threadpool) { in checkin_worker_thread() 95 static void wait_worker_threads(struct pthreadpool* threadpool) { in wait_worker_threads() 141 struct pthreadpool* threadpool, in wait_for_new_command() 184 struct pthreadpool* threadpool = thread->threadpool; in thread_main() 230 struct pthreadpool* pthreadpool_create(size_t threads_count) { in pthreadpool_create() 258 struct pthreadpool* threadpool = pthreadpool_allocate(threads_count); in pthreadpool_create() 295 struct pthreadpool* threadpool, in pthreadpool_parallelize() 404 void pthreadpool_destroy(struct pthreadpool* threadpool) { in pthreadpool_destroy()
|
H A D | windows.c | 23 static void checkin_worker_thread(struct pthreadpool* threadpool, uint32_t event_index) { in checkin_worker_thread() 29 static void wait_worker_threads(struct pthreadpool* threadpool, uint32_t event_index) { in wait_worker_threads() 53 struct pthreadpool* threadpool, in wait_for_new_command() 86 struct pthreadpool* threadpool = thread->threadpool; in thread_main() 134 struct pthreadpool* pthreadpool_create(size_t threads_count) { in pthreadpool_create() 142 struct pthreadpool* threadpool = pthreadpool_allocate(threads_count); in pthreadpool_create() 191 struct pthreadpool* threadpool, in pthreadpool_parallelize() 312 void pthreadpool_destroy(struct pthreadpool* threadpool) { in pthreadpool_destroy()
|
H A D | shim.c | 11 struct pthreadpool { struct 14 static const struct pthreadpool static_pthreadpool = { }; 17 struct pthreadpool* pthreadpool_create(size_t threads_count) { in pthreadpool_create() 19 return (struct pthreadpool*) &static_pthreadpool; in pthreadpool_create() 25 size_t pthreadpool_get_threads_count(struct pthreadpool* threadpool) { in pthreadpool_get_threads_count() 30 struct pthreadpool* threadpool, in pthreadpool_parallelize_1d() 69 struct pthreadpool* threadpool, in pthreadpool_parallelize_2d() 471 void pthreadpool_destroy(struct pthreadpool* threadpool) { in pthreadpool_destroy()
|
H A D | fastpath.c | 26 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_1d_fastpath() 62 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_1d_with_uarch_fastpath() 107 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_1d_tile_1d_fastpath() 149 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_2d_fastpath() 195 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 245 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_2d_tile_2d_fastpath() 298 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_2d_tile_2d_with_uarch_fastpath() 360 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_3d_fastpath() 413 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_3d_tile_1d_fastpath() 470 struct pthreadpool* threadpool, in pthreadpool_thread_parallelize_3d_tile_2d_fastpath() [all …]
|
/aosp_15_r20/external/executorch/backends/xnnpack/third-party/ |
H A D | pthreadpool_defs.bzl | 4 name = "pthreadpool", 5 …srcs = ["pthreadpool/src/legacy-api.c", "pthreadpool/src/memory.c", "pthreadpool/src/portable-api.… 19 "threadpool-atomics.h": "pthreadpool/src/threadpool-atomics.h", 20 "threadpool-common.h": "pthreadpool/src/threadpool-common.h", 21 "threadpool-object.h": "pthreadpool/src/threadpool-object.h", 22 "threadpool-utils.h": "pthreadpool/src/threadpool-utils.h", 36 "pthreadpool.h": "pthreadpool/include/pthreadpool.h",
|
/aosp_15_r20/external/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/cmake/ |
H A D | DownloadPThreadPool.cmake | 9 project(pthreadpool-download NONE) 12 ExternalProject_Add(pthreadpool 13 GIT_REPOSITORY https://github.com/Maratyszcza/pthreadpool.git 15 SOURCE_DIR "${CONFU_DEPENDENCIES_SOURCE_DIR}/pthreadpool" 16 BINARY_DIR "${CONFU_DEPENDENCIES_BINARY_DIR}/pthreadpool"
|
/aosp_15_r20/external/XNNPACK/cmake/ |
H A D | DownloadPThreadPool.cmake | 11 PROJECT(pthreadpool-download NONE) 14 ExternalProject_Add(pthreadpool 15 …URL https://github.com/Maratyszcza/pthreadpool/archive/545ebe9f225aec6dca49109516fac02e973a3de2.zip 17 SOURCE_DIR "${CMAKE_BINARY_DIR}/pthreadpool-source" 18 BINARY_DIR "${CMAKE_BINARY_DIR}/pthreadpool"
|
/aosp_15_r20/external/pytorch/third_party/ |
H A D | BUCK.oss | 41 name = "pthreadpool", 42 …srcs = ['pthreadpool/src/legacy-api.c', 'pthreadpool/src/memory.c', 'pthreadpool/src/portable-api.… 54 'threadpool-atomics.h': 'pthreadpool/src/threadpool-atomics.h', 55 'threadpool-common.h': 'pthreadpool/src/threadpool-common.h', 56 'threadpool-object.h': 'pthreadpool/src/threadpool-object.h', 57 'threadpool-utils.h': 'pthreadpool/src/threadpool-utils.h', 72 "pthreadpool.h": "pthreadpool/include/pthreadpool.h",
|
/aosp_15_r20/external/executorch/shim/xplat/executorch/backends/xnnpack/third-party/ |
H A D | third_party_libs.bzl | 12 …"pthreadpool": ["//xplat/third-party/pthreadpool:pthreadpool", "//backends/xnnpack/third-party:pth… 13 …"pthreadpool_header": ["//xplat/third-party/pthreadpool:pthreadpool_header", "//backends/xnnpack/t…
|
/aosp_15_r20/external/executorch/examples/models/llama/ |
H A D | CMakeLists.txt | 26 # pthreadpool: build pthreadpool library. Disable on unsupported platforms 29 EXECUTORCH_BUILD_PTHREADPOOL "Build pthreadpool library." ON 134 # Extra compile option and include dir for pthreadpool 137 list(APPEND link_libraries extension_threadpool pthreadpool) 139 ${XNNPACK_ROOT}/third-party/pthreadpool/include
|
/aosp_15_r20/external/pytorch/cmake/External/ |
H A D | nnpack.cmake | 56 …set(PTHREADPOOL_SOURCE_DIR "${CAFFE2_THIRD_PARTY_ROOT}/pthreadpool" CACHE STRING "pthreadpool sour… 72 # We build static versions of nnpack and pthreadpool but link 75 set_property(TARGET pthreadpool PROPERTY POSITION_INDEPENDENT_CODE ON) 105 $<TARGET_PROPERTY:pthreadpool,INCLUDE_DIRECTORIES>)
|
/aosp_15_r20/external/executorch/examples/models/llava/ |
H A D | CMakeLists.txt | 29 # pthreadpool: build pthreadpool library. Disable on unsupported platforms 32 EXECUTORCH_BUILD_PTHREADPOOL "Build pthreadpool library." ON 141 # Extra compile option and include dir for pthreadpool 144 list(APPEND link_libraries extension_threadpool pthreadpool) 146 ${XNNPACK_ROOT}/third-party/pthreadpool/include
|
/aosp_15_r20/external/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/ |
H A D | CMakeLists.txt | 121 …message(STATUS "Downloading pthreadpool to ${CONFU_DEPENDENCIES_SOURCE_DIR}/pthreadpool (define PT… 122 …configure_file(cmake/DownloadPThreadPool.cmake "${CONFU_DEPENDENCIES_BINARY_DIR}/pthreadpool-downl… 124 WORKING_DIRECTORY "${CONFU_DEPENDENCIES_BINARY_DIR}/pthreadpool-download") 126 WORKING_DIRECTORY "${CONFU_DEPENDENCIES_BINARY_DIR}/pthreadpool-download") 127 …PTHREADPOOL_SOURCE_DIR "${CONFU_DEPENDENCIES_SOURCE_DIR}/pthreadpool" CACHE STRING "pthreadpool so… 358 # ---[ Configure pthreadpool 359 if(NOT TARGET pthreadpool AND NOT USE_SYSTEM_PTHREADPOOL) 364 "${CONFU_DEPENDENCIES_BINARY_DIR}/pthreadpool") 365 elseif(NOT TARGET pthreadpool AND USE_SYSTEM_PTHREADPOOL) 366 add_library(pthreadpool SHARED IMPORTED) target [all …]
|
/aosp_15_r20/external/XNNPACK/ |
H A D | WORKSPACE | 55 # pthreadpool library, used for parallelization 57 name = "pthreadpool", 58 strip_prefix = "pthreadpool-b8374f80e42010941bda6c85b0e3f1a1bd77a1e0", 60 …urls = ["https://github.com/Maratyszcza/pthreadpool/archive/b8374f80e42010941bda6c85b0e3f1a1bd77a1…
|
H A D | CMakeLists.txt | 139 …MESSAGE(STATUS "Downloading pthreadpool to ${CMAKE_BINARY_DIR}/pthreadpool-source (define PTHREADP… 140 …CONFIGURE_FILE(cmake/DownloadPThreadPool.cmake "${CMAKE_BINARY_DIR}/pthreadpool-download/CMakeList… 142 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download") 144 WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/pthreadpool-download") 145 …SET(PTHREADPOOL_SOURCE_DIR "${CMAKE_BINARY_DIR}/pthreadpool-source" CACHE STRING "pthreadpool sour… 7317 # ---[ Configure pthreadpool 7318 IF(NOT TARGET pthreadpool) 7325 "${CMAKE_BINARY_DIR}/pthreadpool") 7327 ADD_LIBRARY(pthreadpool SHARED IMPORTED) target 7328 FIND_LIBRARY(PTHREADPOOL_LIBRARY pthreadpool) [all …]
|
/aosp_15_r20/external/pytorch/ |
H A D | BUCK.oss | 16 name = "pthreadpool", 17 …['caffe2/utils/threadpool/pthreadpool.cc', 'caffe2/utils/threadpool/pthreadpool_impl.cc', 'caffe2/… 19 exported_deps = ['//third_party:pthreadpool'],
|
/aosp_15_r20/external/pytorch/aten/src/ATen/ |
H A D | ParallelNative.cpp | 98 caffe2::PThreadPool* const pool = caffe2::pthreadpool(); in _run_with_pool() 207 caffe2::pthreadpool(); in init_num_threads() 232 caffe2::PThreadPool* const pool = caffe2::pthreadpool(); in set_num_threads() 254 caffe2::PThreadPool* const pool = caffe2::pthreadpool(); in get_num_threads()
|
/aosp_15_r20/external/pytorch/caffe2/utils/threadpool/ |
H A D | pthreadpool_impl.cc | 82 void legacy_pthreadpool_destroy(legacy_pthreadpool_t pthreadpool) { in legacy_pthreadpool_destroy() argument 83 if (pthreadpool) { in legacy_pthreadpool_destroy() 85 reinterpret_cast<caffe2::ThreadPool*>(pthreadpool); in legacy_pthreadpool_destroy()
|