Skip to content

Commit 06ab5fc

Browse files
committed
Committing Parallel STL 20190429 open source release
1 parent 8bbbbe7 commit 06ab5fc

18 files changed

+349
-234
lines changed

CHANGES

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
------------------------------------------------------------------------
22
The list of most significant changes made over time in Parallel STL.
33

4+
Parallel STL release within Intel(R) Parallel Studio XE 2019 Update 4
5+
PSTL_VERSION == 206
6+
7+
Features / APIs:
8+
9+
- Improved performance in equal algorithm.
10+
11+
Bugs fixed:
12+
- Fixed an error with multiple invocations of FindTBB.cmake
13+
(https://github.com/intel/parallelstl/issues/26).
14+
15+
------------------------------------------------------------------------
416
Parallel STL 20190321 release
517
PSTL_VERSION == 205
618

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ cmake_minimum_required(VERSION 3.1)
1616

1717
set(PARALLELSTL_VERSION_FILE "include/pstl/internal/pstl_config.h")
1818
file(STRINGS "${PARALLELSTL_VERSION_FILE}" PARALLELSTL_VERSION_SOURCE REGEX "#define PSTL_VERSION .*$")
19-
string(REGEX MATCH "#define PSTL_VERSION (.*)$" PARALLELSTL_VERSION_SOURCE "${PARALLELSTL_VERSION_SOURCE}")
20-
math(EXPR VERSION_MAJOR "${CMAKE_MATCH_1} / 100")
21-
math(EXPR VERSION_MINOR "${CMAKE_MATCH_1} % 100")
19+
string(REGEX REPLACE "#define PSTL_VERSION (.*)$" "\\1" PARALLELSTL_VERSION_SOURCE "${PARALLELSTL_VERSION_SOURCE}")
20+
math(EXPR VERSION_MAJOR "${PARALLELSTL_VERSION_SOURCE} / 100")
21+
math(EXPR VERSION_MINOR "${PARALLELSTL_VERSION_SOURCE} % 100")
2222

2323
project(ParallelSTL VERSION ${VERSION_MAJOR}.${VERSION_MINOR} LANGUAGES CXX)
2424

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Parallel STL
2-
[![Stable release](https://img.shields.io/badge/version-20190321-green.svg)](https://github.com/intel/parallelstl/releases/tag/20190321)
2+
[![Stable release](https://img.shields.io/badge/version-20190429-green.svg)](https://github.com/intel/parallelstl/releases/tag/20190429)
33

44
Parallel STL is an implementation of the C++ standard library algorithms with support for execution policies,
55
as specified in ISO/IEC 14882:2017 standard, commonly called C++17.
@@ -20,7 +20,7 @@ To use Parallel STL, you must have the following software installed:
2020
* Threading Building Blocks (TBB) which is available to download in the GitHub [repository](https://github.com/01org/tbb/)
2121

2222
## Release Information
23-
Here are the latest [Changes](CHANGES) and [Release Notes](doc/Release_Notes.txt) (contains system requirements and known issues).
23+
Here are the latest [Changes](CHANGES) and [Release Notes](Release_Notes.txt) (contains system requirements and known issues).
2424

2525
## License
2626
Parallel STL is licensed under [Apache License Version 2.0 with LLVM exceptions](LICENSE).

build/android.linux.launcher.sh

100644100755
File mode changed.

cmake/FindTBB.cmake

+18-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@
1212
#
1313
##===----------------------------------------------------------------------===##
1414

15+
if (NOT TBB_FIND_COMPONENTS)
16+
set(TBB_FIND_COMPONENTS tbb tbbmalloc)
17+
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
18+
set(TBB_FIND_REQUIRED_${_tbb_component} 1)
19+
endforeach()
20+
endif()
21+
22+
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
23+
if (TARGET TBB::${_tbb_component})
24+
message(STATUS "Using previously found TBB::${_tbb_component}")
25+
list(REMOVE_ITEM TBB_FIND_COMPONENTS ${_tbb_component})
26+
endif()
27+
endforeach()
28+
29+
if (NOT TBB_FIND_COMPONENTS)
30+
return()
31+
endif()
32+
1533
include(FindPackageHandleStandardArgs)
1634

1735
# Firstly search for TBB in config mode (i.e. search for TBBConfig.cmake).
@@ -25,13 +43,6 @@ if (TBB_FOUND)
2543
return()
2644
endif()
2745

28-
if (NOT TBB_FIND_COMPONENTS)
29-
set(TBB_FIND_COMPONENTS tbb tbbmalloc)
30-
foreach (_tbb_component ${TBB_FIND_COMPONENTS})
31-
set(TBB_FIND_REQUIRED_${_tbb_component} 1)
32-
endforeach()
33-
endif()
34-
3546
find_path(_tbb_include_dir tbb/tbb.h)
3647
if (_tbb_include_dir)
3748
file(READ "${_tbb_include_dir}/tbb/tbb_stddef.h" _tbb_stddef LIMIT 2048)

include/pstl/internal/algorithm_fwd.h

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// -*- C++ -*-
2+
//===-- algorithm_fwd.h ---------------------------------------------------===//
3+
//
4+
// Copyright (C) 2017-2019 Intel Corporation
5+
//
6+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+
//
8+
// This file incorporates work covered by the following copyright and permission
9+
// notice:
10+
//
11+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
12+
// See https://llvm.org/LICENSE.txt for license information.
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
#ifndef __PSTL_algorithm_fwd_H
17+
#define __PSTL_algorithm_fwd_H
18+
19+
namespace __pstl
20+
{
21+
namespace internal
22+
{
23+
24+
template<typename... _ExecutionPolicy>
25+
struct brick_copy_n;
26+
27+
template<typename... _ExecutionPolicy>
28+
struct brick_copy;
29+
30+
template<typename... _ExecutionPolicy>
31+
struct brick_move;
32+
33+
}
34+
}
35+
36+
#endif

0 commit comments

Comments
 (0)