Skip to content

Commit b118b51

Browse files
committed
Committing Parallel STL 20181109 open source release
1 parent b159176 commit b118b51

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

CHANGES

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
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 1
5+
PSTL_VERSION == 202
6+
7+
Features / APIs:
8+
9+
- Fixed compilation error for reduce and transform_reduce algorithms
10+
with Microsoft* Visual Studio 2017 15.8.
11+
12+
------------------------------------------------------------------------
413
Parallel STL 20181004 release
514
PSTL_VERSION == 201
615

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-20181004-green.svg)](https://github.com/intel/parallelstl/releases/tag/20181004)
2+
[![Stable release](https://img.shields.io/badge/version-20181109-green.svg)](https://github.com/intel/parallelstl/releases/tag/20181109)
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/android.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SDL_FLAGS = -fstack-protector -Wformat -Wformat-security
2222
CPLUS_FLAGS += $(TARGET_CFLAGS) $(PIE_FLAGS) $(SDL_FLAGS)
2323

2424
# Paths to the NDK prebuilt tools and libraries
25-
ifneq (,$(findstring $(ndk_version),r16 r16b))
25+
ifeq (,$(findstring $(ndk_version), $(foreach v, 7 8 9 10 11 12 13 14 15,r$(v) r$(v)b r$(v)c r$(v)d r$(v)e)))
2626
ifeq (clang,$(compiler))
2727
# Since Android* NDK r16 another sysroot and isystem paths have to be specified
2828
CPLUS_FLAGS += --sysroot=$(NDK_ROOT)/sysroot -isystem $(NDK_ROOT)/sysroot/usr/include/$(TRIPLE)

doc/Release_Notes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Software - Supported Compilers
8181
GNU Compilers (gcc) 4.8 - 7.1
8282
Clang* 3.3 - 3.8
8383
Xcode* 7.0 - 9.1
84-
Android* NDK r13 - r16
84+
Android* NDK r13 - r17b
8585

8686
Known Issues or limitations
8787

include/pstl/internal/pstl_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#ifndef __PSTL_config_H
2222
#define __PSTL_config_H
2323

24-
#define PSTL_VERSION 201
24+
#define PSTL_VERSION 202
2525
#define PSTL_VERSION_MAJOR (PSTL_VERSION/100)
2626
#define PSTL_VERSION_MINOR (PSTL_VERSION - PSTL_VERSION_MAJOR * 100)
2727

include/pstl/internal/unseq_backend_simd.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ simd_transform_reduce(_Size __n, _Tp __init, _BinaryOperation __binary_op, _Unar
396396
const std::size_t __lane_size = 64;
397397
const std::size_t block_size = __lane_size / sizeof(_Tp);
398398
if (__n > 2 * block_size && block_size > 1) {
399-
typename std::aligned_storage<sizeof(_Tp), __lane_size>::type __lane_[block_size];
399+
alignas(__lane_size) char __lane_[__lane_size];
400400
_Tp* __lane = reinterpret_cast<_Tp*>(__lane_);
401401

402402
// initializer
@@ -422,6 +422,11 @@ __PSTL_PRAGMA_SIMD
422422
for (_Size __i = 0; __i < block_size; ++__i) {
423423
__init = __binary_op(__init, __lane[__i]);
424424
}
425+
// destroyer
426+
__PSTL_PRAGMA_SIMD
427+
for (_Size __i = 0; __i < block_size; ++__i) {
428+
__lane[__i].~_Tp();
429+
}
425430
}
426431
else {
427432
for (_Size __i = 0; __i < __n; ++__i) {

0 commit comments

Comments
 (0)