-
Notifications
You must be signed in to change notification settings - Fork 117
Uninitialized refactors #2549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Uninitialized refactors #2549
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
67cd47b
refactor away redundant fill functor;
danhoeflinger 7f178b0
fixing typo uninitialized_value_construct
danhoeflinger 724fb32
revert formatting only changes
danhoeflinger 62db354
fixing rebase
danhoeflinger 516b995
formatting
danhoeflinger c315942
formatting
danhoeflinger fc3af7f
formatting
danhoeflinger a9f4a9a
move from algorithm to memory
danhoeflinger 39972a9
reverting formatting only change
danhoeflinger 76cdfd3
formatting fixes
danhoeflinger 0f229d5
formatting
danhoeflinger ed00490
adding memory_impl_hetero.h
danhoeflinger 36f57e0
formatting, naming
danhoeflinger 5364964
fix header
danhoeflinger 47cffba
remove stale sycl_traits
danhoeflinger 89aec8e
using fully qualified name
danhoeflinger 0a56ec7
fix header copyright
danhoeflinger 2a2da89
fix no_init property
danhoeflinger 3fcbd84
fully qualified name
danhoeflinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // -*- C++ -*- | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // Copyright (C) UXL Foundation Contributors | ||
| // | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #ifndef _ONEDPL_MEMORY_IMPL_HETERO_H | ||
| #define _ONEDPL_MEMORY_IMPL_HETERO_H | ||
|
|
||
| #include "algorithm_impl_hetero.h" | ||
|
|
||
| namespace oneapi | ||
| { | ||
| namespace dpl | ||
| { | ||
| namespace __internal | ||
| { | ||
|
|
||
| //------------------------------------------------------------------------ | ||
| // uninitialized_walk1 | ||
| //------------------------------------------------------------------------ | ||
|
|
||
| template <class _BackendTag, class _ExecutionPolicy, class _ForwardIterator, class _Function> | ||
| void | ||
| __pattern_uninitialized_walk1(__hetero_tag<_BackendTag> tag, _ExecutionPolicy&& __exec, _ForwardIterator __first, | ||
| _ForwardIterator __last, _Function __f) | ||
| { | ||
| oneapi::dpl::__internal::__pattern_hetero_walk1<sycl::access_mode::write, /*_IsNoInitRequested=*/true>( | ||
| tag, std::forward<_ExecutionPolicy>(__exec), __first, __last, __f); | ||
| } | ||
|
|
||
| //------------------------------------------------------------------------ | ||
| // uninitialized_walk1_n | ||
| //------------------------------------------------------------------------ | ||
|
|
||
| template <typename _BackendTag, typename _ExecutionPolicy, typename _ForwardIterator, typename _Size, | ||
| typename _Function> | ||
| _ForwardIterator | ||
| __pattern_uninitialized_walk1_n(__hetero_tag<_BackendTag> __tag, _ExecutionPolicy&& __exec, _ForwardIterator __first, | ||
| _Size __n, _Function __f) | ||
| { | ||
| oneapi::dpl::__internal::__pattern_hetero_walk1<sycl::access_mode::write, /*_IsNoInitRequested=*/true>( | ||
| __tag, std::forward<_ExecutionPolicy>(__exec), __first, __first + __n, __f); | ||
|
danhoeflinger marked this conversation as resolved.
|
||
| return __first + __n; | ||
| } | ||
|
|
||
| } // namespace __internal | ||
| } // namespace dpl | ||
| } // namespace oneapi | ||
|
|
||
| #endif // _ONEDPL_MEMORY_IMPL_HETERO_H | ||
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.