Simple tests for the Parallel Standard Template Library (PSTL)
- Download the repository:
git clone https://github.com/NOAA-GSD/PSTL.git- Create a build directory (for instance inside the source tree):
cd PSTL
mkdir build
cd build-
Configure your system to have the proper libraries visable to the CMake build system:
Note: These rules and variables used by CMake and not part of the PSTL application- CXX
- CMake will check CXX to detect the current compiler for C++
export CXX=/my/dir/to/compiler/g++- TBB_ROOT
- CMake will check for Intel Thread Building Blocks if using the GCC compiler
export TBB_ROOT=/my/path/to/tbb # TBB Library for GCC - CXX
-
Run cmake to generate the Makefile:
cmake ..CMake tries to determine the platform you use, and will look for the required tools. It will report if something is missing.
- Build and Install the test cases:
make
make install- Run all test cases for simple Pass/Fail
make test- Obtain detailed test case Pass/Fail information The test cases print out more detailed information as they run but this information is not displayed using the cmake test environment. To view the output each test can be manualy run from within the testing directory.
cd test
./test_<case_name>| Symbol | Meaning |
|---|---|
| N | Not Working |
| Y | Works |
| - | To Be Done |
| Compiler | stl_sort | stl_vector | strided_vector | strided_stride |
|---|---|---|---|---|
| GCC 11.1 | Y | Y | Y | Y |
| GCC 11.1 + TBB 2021.3.0 | Y | Y | Y | Y |
| NVHPC -stdpar=gpu | - | - | - | - |
| NVHPC 21.7 -stdpar=multicore | Y | Y | Y | Y |