Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

@alliepiper
Copy link
Collaborator

Brings in changes that were released as part of CTK 12.

alliepiper and others added 25 commits July 27, 2022 18:41
Thrust algorithms inherently synchronize, and device-side
syncs aren't supported on sm90+.
The device synchronization was decoupled from `THRUST_CDP_DISPATCH`
and was trying to sync regardless of CDP state. This led to
device syncs being invoked from device code when CDP is disabled
and the thread-serial implementation was used.

Some other algorithms that are implemented with `parallel_for`
have also been updated.

Old behavior:

1. `for_each`: calls `parallel_for`
2. `parallel_for`: calls appropriate impl using `THRUST_CDP_DISPATCH`
3. `parallel_for`: returns
4. `for_each`: calls `cub::detail::device_synchronize`

New behavior:

1. `for_each`: calls `parallel_for`
2. `parallel_for`: calls appropriate impl using `THRUST_CDP_DISPATCH`
4. `parallel_for`: calls `cub::detail::device_synchronize`
3. `parallel_for`: returns
…ackport

Move sync from for_each to parallel_for to fix CDP usages [2.0.X backport]
Various CMake fixes for new build features
Remove remnants of `throw()`

(cherry picked from commit d3e6fa1)
(cherry picked from commit a38978c)
@alliepiper alliepiper added the P0: must have Absolutely necessary. Critical issue, major blocker, etc. label Dec 13, 2022
@alliepiper
Copy link
Collaborator Author

run tests

@alliepiper alliepiper mentioned this pull request Dec 13, 2022
@alliepiper alliepiper added the testing: gpuCI in progress Started gpuCI testing. label Dec 13, 2022
@alliepiper
Copy link
Collaborator Author

run tests

@alliepiper alliepiper merged commit f0ff4b2 into NVIDIA:main Dec 15, 2022
github-actions bot pushed a commit that referenced this pull request Dec 15, 2022
@alliepiper alliepiper deleted the ctk12_sync branch December 15, 2022 21:21
github-actions bot pushed a commit to clayne/thrust that referenced this pull request Dec 23, 2022
github-actions bot pushed a commit to gevtushenko/thrust that referenced this pull request Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

P0: must have Absolutely necessary. Critical issue, major blocker, etc. testing: gpuCI in progress Started gpuCI testing.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants