forked from NVIDIA/thrust
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues in TBB/OpenMP backends on MSVC.
- CMake - Define `NOMINMAX` on msvc because aaaargh. - Define `_CRT_SECURE_NO_WARNINGS` for examples (fopen, etc warnings) - Define `iterator_category` for testing iterator. - Add missing include to shuffle unit test - Specialize wrapped_function for void return types - MSVC is not a fan of the pattern "return static_cast<void>(expr);" - Replace buggy SFINAE check with static_assert - SFINAE expression was evaluating wrong type (should have been Tuple, not the first element type of Tuple) - Rather than fix SFINAE expression, switch to a static_assert for the better diagnostic - Replace deprecated `tbb/tbb_thread.h` with `<thread>`. - Fix overcounting of initial value in tbb scans. - Apparently reverse_join may be called before operator() - Fix partial sum value type to support edge case from unit test: ``` # testing/scan.cu:260: // float -> float with plus<int> operator (int accumulator) thrust::inclusive_scan(float_input.begin(), float_input.end(), float_output.begin(), thrust::plus<int>()); ASSERT_EQUAL(float_output[0], 1.5); ASSERT_EQUAL(float_output[1], 3.0); ASSERT_EQUAL(float_output[2], 6.0); ASSERT_EQUAL(float_output[3], 10.0); ```
- Loading branch information
1 parent
e478243
commit e779d2e
Showing
7 changed files
with
139 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.