-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Add property validation to sycl object ctors #15253
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
sergey-semenov
merged 29 commits into
intel:sycl
from
KseniyaTikhomirova:defbased_property
Oct 10, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
91f0ce6
Add def based check for queue
KseniyaTikhomirova ae0b1d4
add test for queue
KseniyaTikhomirova 6e673ac
fix code-review comments
KseniyaTikhomirova 34d65d9
fix format
KseniyaTikhomirova 05b7398
add check to buffer & image
KseniyaTikhomirova 10bd181
fix format
KseniyaTikhomirova 87a1691
fix build & format
KseniyaTikhomirova f3b6e39
add check to context
KseniyaTikhomirova db53824
add test for context
KseniyaTikhomirova c5a4eff
fix build
KseniyaTikhomirova d88c3f2
add check to sampler
KseniyaTikhomirova d83f367
add test for sampler
KseniyaTikhomirova 8edf0c1
add check to stream
KseniyaTikhomirova a9c8c39
add test for stream
KseniyaTikhomirova 0587a71
update tests
KseniyaTikhomirova f02ca36
add check to reduction
KseniyaTikhomirova 72fc90d
add test for reduction
KseniyaTikhomirova 4e5f586
add check to usm_allocator
KseniyaTikhomirova 2d99591
add test for usm_allocator
KseniyaTikhomirova 0973de0
update linux symbols
KseniyaTikhomirova e76b4ae
fix stream test
KseniyaTikhomirova 4f25430
fix format
KseniyaTikhomirova 80acde2
add check to accessor
KseniyaTikhomirova 05cf71d
add test for sampled/unsampled_image
KseniyaTikhomirova 24120ff
Merge branch 'sycl' into defbased_property
KseniyaTikhomirova f16372f
fix tests
KseniyaTikhomirova 6fa9b2b
add a few accessor tests
KseniyaTikhomirova 95ea264
Merge branch 'sycl' into defbased_property
KseniyaTikhomirova e44a496
fix win build
KseniyaTikhomirova 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// --*- c++ -*--- | ||
#ifndef __SYCL_DATA_LESS_PROP | ||
#define __SYCL_DATA_LESS_PROP(NS_QUALIFIER, PROP_NAME, ENUM_VAL) | ||
#endif | ||
#ifndef __SYCL_MANUALLY_DEFINED_PROP | ||
#define __SYCL_MANUALLY_DEFINED_PROP(NS_QUALIFIER, PROP_NAME) | ||
#endif | ||
|
||
__SYCL_DATA_LESS_PROP(property::buffer, use_host_ptr, BufferUseHostPtr) | ||
__SYCL_DATA_LESS_PROP(ext::oneapi::property::buffer, use_pinned_host_memory, BufferUsePinnedHostMemory) | ||
|
||
// Contains data field, defined explicitly. | ||
__SYCL_MANUALLY_DEFINED_PROP(property::buffer, use_mutex) | ||
__SYCL_MANUALLY_DEFINED_PROP(property::buffer, context_bound) | ||
__SYCL_MANUALLY_DEFINED_PROP(property::buffer, mem_channel) | ||
__SYCL_MANUALLY_DEFINED_PROP(property::buffer::detail, buffer_location) | ||
|
||
#undef __SYCL_DATA_LESS_PROP | ||
#undef __SYCL_MANUALLY_DEFINED_PROP |
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,16 @@ | ||
// --*- c++ -*--- | ||
#ifndef __SYCL_DATA_LESS_PROP | ||
#define __SYCL_DATA_LESS_PROP(NS_QUALIFIER, PROP_NAME, ENUM_VAL) | ||
#endif | ||
#ifndef __SYCL_MANUALLY_DEFINED_PROP | ||
#define __SYCL_MANUALLY_DEFINED_PROP(NS_QUALIFIER, PROP_NAME) | ||
#endif | ||
|
||
__SYCL_DATA_LESS_PROP(property::image, use_host_ptr, ImageUseHostPtr) | ||
|
||
// Contains data field, defined explicitly. | ||
__SYCL_MANUALLY_DEFINED_PROP(property::image, use_mutex) | ||
__SYCL_MANUALLY_DEFINED_PROP(property::image, context_bound) | ||
|
||
#undef __SYCL_DATA_LESS_PROP | ||
#undef __SYCL_MANUALLY_DEFINED_PROP |
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,12 @@ | ||
// --*- c++ -*--- | ||
#ifndef __SYCL_DATA_LESS_PROP | ||
#define __SYCL_DATA_LESS_PROP(NS_QUALIFIER, PROP_NAME, ENUM_VAL) | ||
#endif | ||
#ifndef __SYCL_MANUALLY_DEFINED_PROP | ||
#define __SYCL_MANUALLY_DEFINED_PROP(NS_QUALIFIER, PROP_NAME) | ||
#endif | ||
|
||
__SYCL_DATA_LESS_PROP(property::reduction, initialize_to_identity, InitializeToIdentity) | ||
|
||
#undef __SYCL_DATA_LESS_PROP | ||
#undef __SYCL_MANUALLY_DEFINED_PROP |
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
17 changes: 17 additions & 0 deletions
17
sycl/include/sycl/properties/runtime_accessor_properties.def
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,17 @@ | ||
// --*- c++ -*--- | ||
#ifndef __SYCL_DATA_LESS_PROP | ||
#define __SYCL_DATA_LESS_PROP(NS_QUALIFIER, PROP_NAME, ENUM_VAL) | ||
#endif | ||
#ifndef __SYCL_MANUALLY_DEFINED_PROP | ||
#define __SYCL_MANUALLY_DEFINED_PROP(NS_QUALIFIER, PROP_NAME) | ||
#endif | ||
#ifndef __SYCL_DATA_LESS_PROP_DEPRECATED_ALIAS | ||
#define __SYCL_DATA_LESS_PROP_DEPRECATED_ALIAS(NS_QUALIFIER, PROP_NAME, ENUM_VAL, WARNING) | ||
#endif | ||
|
||
__SYCL_DATA_LESS_PROP(property, no_init, NoInit) | ||
__SYCL_DATA_LESS_PROP_DEPRECATED_ALIAS(property, noinit, NoInit, __SYCL2020_DEPRECATED("spelling is now: no_init")) | ||
|
||
#undef __SYCL_DATA_LESS_PROP | ||
#undef __SYCL_MANUALLY_DEFINED_PROP | ||
#undef __SYCL_DATA_LESS_PROP_DEPRECATED_ALIAS |
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
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.