Skip to content

Commit 7658010

Browse files
Updated vendored dlpack.h to v0.8
1 parent 11924c0 commit 7658010

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

dpctl/tensor/include/dlpack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DLPack header
22

3-
The header `dlpack.h` downloaded from `https://github.com/dmlc/dlpack.git` remote at tag 0.7 commit [`e2bdd3bee8`](https://github.com/dmlc/dlpack/commit/e2bdd3bee8cb6501558042633fa59144cc8b7f5f).
3+
The header `dlpack.h` downloaded from `https://github.com/dmlc/dlpack.git` remote at tag v0.8 commit [`365b823`](https://github.com/dmlc/dlpack/commit/365b823cedb281cd0240ca601aba9b78771f91a3).
44

55
The file can also be viewed using github web interface at https://github.com/dmlc/dlpack/blob/e2bdd3bee8cb6501558042633fa59144cc8b7f5f/include/dlpack/dlpack.h
66

dpctl/tensor/include/dlpack/dlpack.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#endif
1717

1818
/*! \brief The current version of dlpack */
19-
#define DLPACK_VERSION 70
19+
#define DLPACK_VERSION 80
2020

2121
/*! \brief The current ABI version of dlpack */
2222
#define DLPACK_ABI_VERSION 1
@@ -126,6 +126,8 @@ typedef enum {
126126
* (C/C++/Python layout: compact struct per complex number)
127127
*/
128128
kDLComplex = 5U,
129+
/*! \brief boolean */
130+
kDLBool = 6U,
129131
} DLDataTypeCode;
130132

131133
/*!
@@ -134,10 +136,11 @@ typedef enum {
134136
* export an array with non-native endianness
135137
*
136138
* Examples
137-
* - float: type_code = 2, bits = 32, lanes=1
138-
* - float4(vectorized 4 float): type_code = 2, bits = 32, lanes=4
139-
* - int8: type_code = 0, bits = 8, lanes=1
139+
* - float: type_code = 2, bits = 32, lanes = 1
140+
* - float4(vectorized 4 float): type_code = 2, bits = 32, lanes = 4
141+
* - int8: type_code = 0, bits = 8, lanes = 1
140142
* - std::complex<float>: type_code = 5, bits = 64, lanes = 1
143+
* - bool: type_code = 6, bits = 8, lanes = 1 (as per common array library convention, the underlying storage size of bool is 8 bits)
141144
*/
142145
typedef struct {
143146
/*!

0 commit comments

Comments
 (0)