Skip to content

Commit

Permalink
[VERSION] Bump to v0.5 (#69)
Browse files Browse the repository at this point in the history
Prepares for v0.5 release

- Remove the deprecated DLContext
- Updated the comment on kDLCUDAHost to remove remark
  about bit-masking as we cannot introduce future
  enums that depends on this behavior.
  • Loading branch information
tqchen authored May 12, 2021
1 parent f197137 commit ddeb264
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions include/dlpack/dlpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#endif

/*! \brief The current version of dlpack */
#define DLPACK_VERSION 040
#define DLPACK_VERSION 050

/*! \brief DLPACK_DLL prefix for windows */
#ifdef _WIN32
Expand Down Expand Up @@ -41,8 +41,7 @@ typedef enum {
/*! \brief CUDA GPU device */
kDLCUDA = 2,
/*!
* \brief Pinned CUDA GPU device by cudaMallocHost
* \note kDLCUDAHost = kDLCPU | kDLCUDA
* \brief Pinned CUDA CPU memory by cudaMallocHost
*/
kDLCUDAHost = 3,
/*! \brief OpenCL devices. */
Expand Down Expand Up @@ -73,11 +72,6 @@ typedef struct {
int device_id;
} DLDevice;

/*!
* \brief This is an alias for DLDevice. Notice that this will be removed in the next release.
*/
typedef DLDevice DLContext;

/*!
* \brief The type code options DLDataType.
*/
Expand Down

0 comments on commit ddeb264

Please sign in to comment.