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.
- 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: ``` // 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); ``` - Use `thrust::advance` instead of `+=` for generic iterators. - Wrap the OMP flags in -Xcompiler for NVCC - Extend ASSERT_STATIC_ASSERT skip for HOST=OMP, too - Add missing header caught by tbb.cuda configs.
- Loading branch information
1 parent
83eff97
commit 6b1f456
Showing
11 changed files
with
144 additions
and
80 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
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.