Skip to content
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

[SYCL][Docs] Add sycl_ext_oneapi_virtual_mem extension and implementation #8954

Merged
merged 135 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from 128 commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
10c344e
[SYCL][Docs] Add sycl_ext_oneapi_virtual_mem extension and implementa…
steffenlarsen Mar 22, 2023
81703b6
Fix declaration in ESIMD emu
steffenlarsen Apr 5, 2023
ce0829c
Initialize CUDA property structs
steffenlarsen Apr 6, 2023
0fef874
Add Windows symbols
steffenlarsen Apr 6, 2023
294dd96
Clarify need for unmapped free
steffenlarsen Apr 6, 2023
053cbdc
Change std::min to std::max
steffenlarsen Apr 6, 2023
1129750
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 6, 2023
7b1b5ec
Fix formatting
steffenlarsen Apr 6, 2023
ac8843f
Reduce work-item count
steffenlarsen Apr 6, 2023
f8fad93
Fix formatting
steffenlarsen Apr 6, 2023
0a6e5f9
Rephrase recommended granularity
steffenlarsen Apr 6, 2023
d0b3229
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 11, 2023
27c7200
Address comments
steffenlarsen Apr 11, 2023
92fe6f5
Add missing offset mention to map overload
steffenlarsen Apr 11, 2023
d2c92f0
Remove memory size argument in granularity queries
steffenlarsen Apr 18, 2023
d6745aa
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 18, 2023
eb21fc3
Make physical_mem release in line with other similar interfaces
steffenlarsen Apr 19, 2023
f268d37
Fix formatting
steffenlarsen Apr 19, 2023
5f5b2f1
Remove use of context in HIP PI
steffenlarsen Apr 19, 2023
1f2d527
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 19, 2023
99b7e9c
Change to use _ur_object
steffenlarsen Apr 19, 2023
14e64af
Change info query names
steffenlarsen Apr 19, 2023
d88e141
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 24, 2023
0df58a4
Add new access mode enum
steffenlarsen Apr 24, 2023
f7004f1
Change to uintptr_t for ranges and adjust descriptions
steffenlarsen Apr 24, 2023
ffb2982
Fix wording
steffenlarsen Apr 25, 2023
a7b067d
Specify aspect in specification section
steffenlarsen Apr 25, 2023
bd3a7e7
Add missing aspect enum
steffenlarsen Apr 25, 2023
c75d8ee
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 26, 2023
4fdf659
Add Windows symbols
steffenlarsen Apr 26, 2023
c1f51e5
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 3, 2023
8c8955a
Fix merge mistake
steffenlarsen May 3, 2023
c763606
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 12, 2023
452ff19
Remove old set_inaccessible declaration
steffenlarsen May 15, 2023
d3f58d5
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 15, 2023
9cb8dbe
Reduce granularity query surface
steffenlarsen May 16, 2023
2db3ac8
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 16, 2023
17a1f3b
Adjust for recent plugin changes
steffenlarsen May 16, 2023
7e2844c
Adjust Windows symbols
steffenlarsen May 16, 2023
99ee1f8
Change shift of flag to 1-increment
steffenlarsen May 17, 2023
6d8aede
Fix use of old function in test
steffenlarsen May 17, 2023
8c5b692
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 20, 2023
62f5dba
Fix formatting
steffenlarsen Jun 20, 2023
358b083
Fix formatting again
steffenlarsen Jun 20, 2023
be0f060
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 22, 2023
391116c
Use correct handle for CUDA physical memory
steffenlarsen Jun 22, 2023
6b62bec
CUDA implementation fixes
steffenlarsen Jun 22, 2023
2385c0b
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 22, 2023
633184e
Remove remaining RT:: uses
steffenlarsen Jun 22, 2023
d1d129f
Fix handles and use of incomplete types
steffenlarsen Jun 22, 2023
77d0232
Fix formatting
steffenlarsen Jun 22, 2023
8278db7
Fix naming and static
steffenlarsen Jun 22, 2023
3eb4f9b
Fix missing symbols
steffenlarsen Jun 22, 2023
3acb43a
Fix small mistakes in virtual_mem.cpp
steffenlarsen Jun 22, 2023
58ab3cb
Add missing __SYCL_EXPORT to declarations
steffenlarsen Jun 23, 2023
2f5638b
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 29, 2023
2e8b031
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jul 6, 2023
5d889c3
Add new aspect to config
steffenlarsen Jul 6, 2023
41cb1e6
Add missing semi-colon
steffenlarsen Jul 6, 2023
d7f720e
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Sep 1, 2023
1045a5c
Fix formatting
steffenlarsen Sep 1, 2023
3c05124
Order source files
steffenlarsen Sep 1, 2023
9d3529d
Remove redundant asserts
steffenlarsen Sep 1, 2023
93d7368
Remove obsolete workaround
steffenlarsen Sep 1, 2023
fca62eb
Fix getDeviceOrdinal
steffenlarsen Sep 1, 2023
47ba688
Fix getDeviceOrdinal attempt 2
steffenlarsen Sep 1, 2023
5e72a00
Fix includes in CUDA device adapter
steffenlarsen Sep 1, 2023
219ad30
Add missing cuda and hip symbols to dump
steffenlarsen Sep 1, 2023
3c61360
Add missing windows symbols
steffenlarsen Sep 4, 2023
7c87219
Set protection mode none if unspecified
steffenlarsen Sep 4, 2023
81286e4
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Oct 9, 2023
8b21ef4
Remove new adapter files
steffenlarsen Oct 9, 2023
1e1fe34
Update tag
steffenlarsen Oct 9, 2023
7dcb46c
Update tag
steffenlarsen Oct 10, 2023
5e49a0a
Update tag
steffenlarsen Oct 11, 2023
7c882dd
Update tag
steffenlarsen Oct 13, 2023
0a564f1
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Oct 16, 2023
394f8ed
Move OpenCL adapter changes
steffenlarsen Oct 16, 2023
aff695d
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Nov 21, 2023
08553af
Fix missed merge conflict
steffenlarsen Nov 21, 2023
b7f91ae
Remove unused files
steffenlarsen Nov 21, 2023
331fa45
Update tag
steffenlarsen Nov 21, 2023
150b9dc
Update tag
steffenlarsen Nov 21, 2023
538af56
Update tag
steffenlarsen Nov 21, 2023
0f29473
Update tag
steffenlarsen Nov 21, 2023
2879161
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Nov 21, 2023
d812df0
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Dec 8, 2023
c7d22eb
Bump tag
steffenlarsen Dec 8, 2023
d14ea5f
Fix formatting
steffenlarsen Dec 8, 2023
05f25b1
Fix aspect and missed merge conflict
steffenlarsen Dec 8, 2023
586b3e2
Missing comma
steffenlarsen Dec 8, 2023
774a5a5
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Dec 15, 2023
337634f
Add missing windows symbol
steffenlarsen Dec 15, 2023
851153c
Implement L0 limitation workaround
steffenlarsen Dec 15, 2023
3996b52
Fix formatting
steffenlarsen Dec 15, 2023
4215fa2
Bump tag
steffenlarsen Dec 15, 2023
a5739f1
Merge branch 'sycl' into steffen/virtual_mem_ext
steffenlarsen Dec 17, 2023
3cc68a4
Merge branch 'sycl' into steffen/virtual_mem_ext
steffenlarsen Jan 2, 2024
260ab05
Merge branch 'sycl' into steffen/virtual_mem_ext
steffenlarsen Jan 22, 2024
21397f0
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Mar 6, 2024
09fb2fe
Address spec wording comments
steffenlarsen Mar 6, 2024
08bbd83
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Apr 19, 2024
d3ae658
Unmap per VA range
steffenlarsen Apr 19, 2024
d75bacd
Fix formatting
steffenlarsen Apr 19, 2024
e7b2635
Clarify returned pointer from map
steffenlarsen Apr 19, 2024
3d8261e
Disallow multi-unmapping for now.
steffenlarsen Apr 19, 2024
9c252ed
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 23, 2024
55f015a
Add native_cpu PI interfaces
steffenlarsen May 23, 2024
6ea3b4e
Add pi nativecpu symbols
steffenlarsen May 27, 2024
0826458
Ext changes
steffenlarsen May 29, 2024
9b7282b
Remove simplified map
steffenlarsen May 29, 2024
1916da3
Add exception for out-of-memory
steffenlarsen May 29, 2024
1fa82c0
Change back to 2023
steffenlarsen May 29, 2024
997cc39
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 29, 2024
3be01f4
Remove windows symbol
steffenlarsen May 29, 2024
743eb2e
Add new context granularity query
steffenlarsen May 30, 2024
b34d068
Amend granularity reqs
steffenlarsen May 30, 2024
93db42b
Fix windows build
steffenlarsen May 30, 2024
eeaaad0
Fix wrong name
steffenlarsen May 30, 2024
e8c98b5
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen May 30, 2024
e5483be
Add missing Windows symbol
steffenlarsen May 30, 2024
290401c
Clarify map and access functions
steffenlarsen May 31, 2024
6630795
Change from host page size to minimum granularity
steffenlarsen May 31, 2024
5c7330d
Address comments
steffenlarsen Jun 20, 2024
187b0f7
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 20, 2024
8dd8cb3
Change requirement for access mode functions
steffenlarsen Jun 20, 2024
327687b
Reword and add restriction
steffenlarsen Jun 20, 2024
639aab3
Fix formatting
steffenlarsen Jun 20, 2024
42cbcde
Address comments
steffenlarsen Jun 27, 2024
95cdcbb
Merge remote-tracking branch 'intel/sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 27, 2024
56ff29c
Fix typo
steffenlarsen Jun 27, 2024
24dea7a
Add noexcept(false) to dtors
steffenlarsen Jun 27, 2024
f85146f
Merge branch 'sycl' into steffen/virtual_mem_ext
steffenlarsen Jun 27, 2024
6df0773
Merge branch 'sycl' into steffen/virtual_mem_ext
steffenlarsen Jul 1, 2024
0bd2ce3
Add physical_mem dtor body to avoid RHEL issues
steffenlarsen Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/include/llvm/SYCLLowerIR/DeviceConfigFile.td
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def AspectExt_intel_fpga_task_sequence : Aspect<"ext_intel_fpga_task_sequence">;
def AspectExt_oneapi_limited_graph : Aspect<"ext_oneapi_limited_graph">;
def AspectExt_oneapi_private_alloca : Aspect<"ext_oneapi_private_alloca">;
def AspectExt_oneapi_queue_profiling_tag : Aspect<"ext_oneapi_queue_profiling_tag">;
def AspectExt_oneapi_virtual_mem : Aspect<"ext_oneapi_virtual_mem">;
// Deprecated aspects
def AspectInt64_base_atomics : Aspect<"int64_base_atomics">;
def AspectInt64_extended_atomics : Aspect<"int64_extended_atomics">;
Expand Down Expand Up @@ -139,7 +140,7 @@ def : TargetInfo<"__TestAspectList",
AspectExt_oneapi_ballot_group, AspectExt_oneapi_fixed_size_group, AspectExt_oneapi_opportunistic_group,
AspectExt_oneapi_tangle_group, AspectExt_intel_matrix, AspectExt_oneapi_is_composite, AspectExt_oneapi_is_component,
AspectExt_oneapi_graph, AspectExt_intel_fpga_task_sequence, AspectExt_oneapi_limited_graph,
AspectExt_oneapi_private_alloca, AspectExt_oneapi_queue_profiling_tag],
AspectExt_oneapi_private_alloca, AspectExt_oneapi_queue_profiling_tag, AspectExt_oneapi_virtual_mem],
[]>;
// This definition serves the only purpose of testing whether the deprecated aspect list defined in here and in SYCL RT
// match.
Expand Down
Loading
Loading