-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL] Add esimd device descriptor for 2d load/store/prefetch #15905
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
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
08bbd1c
[SYCL] Add esimd device descriptor for 2d load/store/prefetch
againull e82741f
Address review
againull b9692aa
Fix namespace ambiguity in esimd tests
againull ea75406
Update tag to rebased UR branch
againull b906c21
Format
againull d8a622c
Fix remaining tests
againull 6317bc1
Another set of tests
againull 2ff7ca5
Merge remote-tracking branch 'origin/sycl' into 2d_block_array_aspects
againull 5f7c19c
Update UR tag after rebase
againull 6025459
Bump UR tag
callumfare bbfb7dd
Merge branch 'sycl' into 2d_block_array_aspects
callumfare 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1 @@ | ||
| # commit 9937d029c7fdcbf101e89f8515f640c145e059c5 | ||
| # Merge: 9ac6d5d9 10b0e101 | ||
| # Author: Callum Fare <[email protected]> | ||
| # Date: Wed Nov 20 14:49:17 2024 +0000 | ||
| # Merge pull request #2258 from aarongreig/aaron/tryUseExtensionSubgroupInfo | ||
| # Use extension version of clGetKernelSubGroupInfo when necessary. | ||
| set(UNIFIED_RUNTIME_TAG 9937d029c7fdcbf101e89f8515f640c145e059c5) | ||
| set(UNIFIED_RUNTIME_TAG 0c814b6e8ff2b87b54286d2b77269ebff480adea) |
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
39 changes: 39 additions & 0 deletions
39
sycl/test-e2e/ESIMD/unified_memory_api/device_info_descriptors.cpp
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,39 @@ | ||
| // RUN: %{build} -o %t.out | ||
| // RUN: %{run} %t.out | ||
|
|
||
| // Test has_2d_block_io_supported device descriptor for some known | ||
| // architectures. | ||
|
|
||
| #include <sycl/detail/core.hpp> | ||
| #include <sycl/ext/intel/esimd.hpp> | ||
|
|
||
| namespace syclex = sycl::ext::oneapi::experimental; | ||
|
|
||
| int main() { | ||
| sycl::queue Q; | ||
| auto Arch = Q.get_device().get_info<syclex::info::device::architecture>(); | ||
| bool Has2DBlockIOSupport = | ||
| Q.get_device() | ||
| .get_info< | ||
| sycl::ext::intel::esimd::info::device::has_2d_block_io_support>(); | ||
| if (Arch == syclex::architecture::intel_gpu_pvc) { | ||
| if (!Has2DBlockIOSupport) { | ||
| std::cerr << "Error: has_2d_block_io_support is expected to be true for " | ||
| "PVC architecture" | ||
| << std::endl; | ||
| return 1; | ||
| } | ||
| } | ||
| if (Arch == syclex::architecture::intel_gpu_tgllp || | ||
| Arch == syclex::architecture::intel_gpu_dg2_g10 || | ||
| Arch == syclex::architecture::intel_gpu_dg2_g11 || | ||
| Arch == syclex::architecture::intel_gpu_dg2_g12) { | ||
| if (Has2DBlockIOSupport) { | ||
| std::cerr << "Error: has_2d_block_io_support is expected to be false for " | ||
| "Tiger Lake and DG2" | ||
| << std::endl; | ||
| return 1; | ||
| } | ||
| } | ||
| return 0; | ||
| } |
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 |
|---|---|---|
|
|
@@ -67,6 +67,7 @@ | |
| ??$get_info@Ugpu_hw_threads_per_eu@device@info@intel@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBAIXZ | ||
| ??$get_info@Ugpu_slices@device@info@intel@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBAIXZ | ||
| ??$get_info@Ugpu_subslices_per_slice@device@info@intel@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBAIXZ | ||
| ??$get_info@Uhas_2d_block_io_support@device@info@esimd@intel@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBA_NXZ | ||
| ??$get_info@Uimage_row_pitch_align@device@info@experimental@oneapi@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBAIXZ | ||
| ??$get_info@Umatrix_combinations@device@info@experimental@oneapi@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBA?AV?$vector@Ucombination@matrix@experimental@oneapi@ext@_V1@sycl@@V?$allocator@Ucombination@matrix@experimental@oneapi@ext@_V1@sycl@@@std@@@std@@XZ | ||
| ??$get_info@Umax_compute_queue_indices@device@info@intel@ext@_V1@sycl@@@device_impl@detail@_V1@sycl@@QEBAHXZ | ||
|
|
@@ -156,6 +157,7 @@ | |
| ??$get_info_impl@Ugpu_slices@device@info@intel@ext@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ | ||
| ??$get_info_impl@Ugpu_subslices_per_slice@device@info@intel@ext@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ | ||
| ??$get_info_impl@Uhalf_fp_config@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA?AV?$vector@W4fp_config@info@_V1@sycl@@V?$allocator@W4fp_config@info@_V1@sycl@@@std@@@std@@XZ | ||
| ??$get_info_impl@Uhas_2d_block_io_support@device@info@esimd@intel@ext@_V1@sycl@@@device@_V1@sycl@@AEBA_NXZ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this shouldnt be abi breaking right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, adding a new symbol is not a breaking change. |
||
| ??$get_info_impl@Uhost_unified_memory@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA_NXZ | ||
| ??$get_info_impl@Uimage2d_max_height@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA_KXZ | ||
| ??$get_info_impl@Uimage2d_max_width@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA_KXZ | ||
|
|
||
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.
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.