Skip to content

Commit a2cc78e

Browse files
committed
Committing Parallel STL 20180329 open source release
1 parent 08d28b5 commit a2cc78e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1557
-639
lines changed

CHANGES

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

4+
Parallel STL 20180329 release
5+
PSTL_VERSION == 104
6+
7+
Features / APIs:
8+
9+
- More algorithms support parallel and vector execution policies:
10+
find_first_of, is_heap, is_heap_until, replace, replace_if.
11+
- More algorithms support vector execution policies:
12+
remove, remove_if.
13+
- More algorithms support parallel execution policies:
14+
partial_sort.
15+
16+
------------------------------------------------------------------------
417
Parallel STL release within Intel(R) Parallel Studio XE 2018 Update 2
518
PSTL_VERSION == 103
619

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Parallel STL
2-
[![Stable release](https://img.shields.io/badge/version-20180322-green.svg)](https://github.com/intel/parallelstl/releases/tag/20180322)
2+
[![Stable release](https://img.shields.io/badge/version-20180329-green.svg)](https://github.com/intel/parallelstl/releases/tag/20180329)
33
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
44

55
Parallel STL is an implementation of the C++ standard library algorithms with support for execution policies,

build/Makefile.common

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ OPTIMIZATION_DISABLED_FLAGS += $(XHOST_FLAG)
9898
ifeq ($(cfg), debug)
9999
TBB_LIB_NAME = tbb_debug
100100
BACKEND_MACRO += -DTBB_USE_DEBUG=1
101+
DEBUG_MACRO += -DPSTL_USE_DEBUG
101102
OPTIMIZATION_KEYS = $(OPTIMIZATION_DISABLED_FLAGS)
102103
else
103104
OPTIMIZATION_KEYS = $(OPTIMIZATION_ENABLED_FLAGS)
@@ -108,6 +109,7 @@ DYN_LDFLAGS += $(PSTL_ARCH)
108109
CPLUS_FLAGS += $(TEST_MACRO)
109110
CPLUS_FLAGS += $(INCLUDES)
110111
CPLUS_FLAGS += $(BACKEND_MACRO)
112+
CPLUS_FLAGS += $(DEBUG_MACRO)
111113
CPLUS_FLAGS += $(CXXFLAGS)
112114
CPLUS_FLAGS += $(OPTIMIZATION_KEYS)
113115

examples/gamma_correction/gamma_correction.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ void applyGamma(Rows& image, double g) {
6666
typedef decltype(image[0][0]) Pixel;
6767
const int w = image[1] - image[0];
6868

69-
//execution STL algorithms with execution policies - std::execution::par and std::execution::unseq
70-
std::for_each(std::execution::par, image.begin(), image.end(), [g, w](Row& r) {
71-
std::transform(std::execution::unseq, r, r+w, r, [g](Pixel& p) {
69+
//execution STL algorithms with execution policies - pstl::execution::par and pstl::execution::unseq
70+
std::for_each(pstl::execution::par, image.begin(), image.end(), [g, w](Row& r) {
71+
std::transform(pstl::execution::unseq, r, r+w, r, [g](Pixel& p) {
7272
double v = 0.3*p.bgra[2] + 0.59*p.bgra[1] + 0.11*p.bgra[0]; //RGB Luminance value
7373
assert(v > 0);
7474
double res = pow(v, g);

include/pstl/algorithm

+97-110
Large diffs are not rendered by default.

include/pstl/execution

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
*/
2020

21-
#ifndef __PSTL_execution_policy_H
22-
#define __PSTL_execution_policy_H
21+
#ifndef __PSTL_execution_policy
22+
#define __PSTL_execution_policy
2323

2424
#include <type_traits>
2525
#include "internal/pstl_config.h"
@@ -129,4 +129,4 @@ namespace std {
129129
__PSTL_PRAGMA_MESSAGE_POLICIES("The <Parallel STL> execution policies are injected into the standard namespace std::execution")
130130
#endif
131131

132-
#endif /* __PSTL_execution_policy_H */
132+
#endif /* __PSTL_execution_policy */

include/pstl/internal/algorithm_impl.h

+111-102
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)