Skip to content

Conversation

@Lucky-Lodhi2004
Copy link

Description

This PR fixes issue #1539.
I have used c++ 17 feature std::execution::par to make execution of loop parellel. For efficient execution of threads I have used separate array. This was existing function so no tests were written.

Any external dependency introduced?

I have used standard c++ includes so no new dependency

}

// Parallel restore
std::for_each(std::execution::par, work.begin(), work.end(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we directly use for_each on m_data instead of copying the elements to a vector?

Copy link
Author

Choose a reason for hiding this comment

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

Seems like github ci doesn't support (c++ 17)

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

// Enable clad after the header was included.
// FIXME: The header inclusion should be made automatic if the pragma is seen.
#pragma clad ON
#pragma clad ON No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: unknown pragma ignored [clang-diagnostic-unknown-pragmas]

#pragma clad ON
        ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants