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

pragma unroll in block_adjacent_difference::Iterate #456

Merged

Conversation

kshitij12345
Copy link
Contributor

@kshitij12345
Copy link
Contributor Author

cc: @allisonvacanti

@alliepiper alliepiper added type: enhancement New feature or request. P2: nice to have Desired, but not necessary. labels Apr 8, 2022
@alliepiper alliepiper added this to the 1.17.0 milestone Apr 8, 2022
preds,
flag_op);
#pragma unroll
for (int i = ITERATION; i < MAX_ITERATIONS; ++i) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both ITERATION and MAX_ITERATIONS are fixed for these methods. These parameters depend on the ITEMS_PER_THREAD that are known in the methods. In my opinion, this creates extra brain load for readers. If you have time and @allisonvacanti doesn't object, let's remove ITERATION and MAX_ITERATIONS. Otherwise, I'll do it in a separate PR later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks!

alliepiper added a commit to alliepiper/thrust that referenced this pull request Apr 22, 2022
@alliepiper
Copy link
Collaborator

gpuCI: NVIDIA/thrust#1667

@alliepiper alliepiper added the testing: gpuCI in progress Started gpuCI testing. label Apr 22, 2022
@alliepiper alliepiper merged commit 191172d into NVIDIA:main Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2: nice to have Desired, but not necessary. testing: gpuCI in progress Started gpuCI testing. type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants