Skip to content

Commit 27ec896

Browse files
[SYCL][NFC] Adjust target::host_buffer deprecation warning (#8498)
This commit changes target::host_buffer deprecation warning to correctly refer to host_accessor as the replacement. Additionally it gives target::host_task an explicit value, similar to the other enumerators. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 0a17e16 commit 27ec896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/sycl/access/access.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ enum class target {
2020
constant_buffer __SYCL2020_DEPRECATED("use 'target::device' instead") = 2015,
2121
local __SYCL2020_DEPRECATED("use `local_accessor` instead") = 2016,
2222
image = 2017,
23-
host_buffer __SYCL2020_DEPRECATED("use 'target::host_task' instead") = 2018,
23+
host_buffer __SYCL2020_DEPRECATED("use 'host_accessor' instead") = 2018,
2424
host_image = 2019,
2525
image_array = 2020,
26-
host_task,
26+
host_task = 2021,
2727
device = global_buffer,
2828
};
2929

0 commit comments

Comments
 (0)