Skip to content

Commit 9d888a1

Browse files
committed
Make properties enum numbering be explicit
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent aff5fee commit 9d888a1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sycl/include/CL/sycl/detail/property_helper.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ namespace detail {
2525
// List of all dataless properties' IDs
2626
enum DataLessPropKind {
2727
BufferUseHostPtr = 0,
28-
ImageUseHostPtr,
29-
QueueEnableProfiling,
30-
InOrder,
31-
NoInit,
32-
BufferUsePinnedHostMemory,
33-
UsePrimaryContext,
34-
DataLessPropKindSize
28+
ImageUseHostPtr = 1,
29+
QueueEnableProfiling = 2,
30+
InOrder = 3,
31+
NoInit = 4,
32+
BufferUsePinnedHostMemory = 5,
33+
UsePrimaryContext = 6,
34+
DataLessPropKindSize = 7
3535
};
3636

3737
// List of all properties with data IDs
3838
enum PropWithDataKind {
3939
BufferUseMutex = 0,
40-
BufferContextBound,
41-
ImageUseMutex,
42-
ImageContextBound,
43-
BufferMemChannel,
44-
PropWithDataKindSize
40+
BufferContextBound = 1,
41+
ImageUseMutex = 2,
42+
ImageContextBound = 3,
43+
BufferMemChannel = 4,
44+
PropWithDataKindSize = 5
4545
};
4646

4747
// Base class for dataless properties, needed to check that the type of an

0 commit comments

Comments
 (0)