Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dlpack for openSUSE:Factory checked in at 2022-02-24 18:21:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dlpack (Old) and /work/SRC/openSUSE:Factory/.dlpack.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dlpack" Thu Feb 24 18:21:05 2022 rev:2 rq:957347 version:0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/dlpack/dlpack.changes 2020-07-31 16:07:17.360808575 +0200 +++ /work/SRC/openSUSE:Factory/.dlpack.new.1958/dlpack.changes 2022-02-24 18:24:32.154641565 +0100 @@ -1,0 +2,23 @@ +Thu Feb 24 10:26:02 UTC 2022 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Update to 0.6: + * Changelog: + Add kDLROCMHost + Add kDLCUDAManaged + * from 0.5: + Rename enum names: + kDLGPU -> kDLCUDA + kDLCPUPinned -> kDLCUDAHost + The ABI is backward compatible, as it is only change of + constant name, exchange can still happen between the new version + and old version. + * from 0.4: + OpaqueHandle type + Complex support + Rename DLContext -> DLDevice + DLTensor.ctx -> DLTensor.device + This requires dependent frameworks to upgrade the type name. + The ABI is backward compatible, as it is only change of constant + name, exchange can still happen between the new version and old version. + +------------------------------------------------------------------- Old: ---- dlpack-0.3.tar.gz New: ---- dlpack-0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dlpack.spec ++++++ --- /var/tmp/diff_new_pack.preCgT/_old 2022-02-24 18:24:32.602641448 +0100 +++ /var/tmp/diff_new_pack.preCgT/_new 2022-02-24 18:24:32.606641447 +0100 @@ -1,7 +1,7 @@ # # spec file for package dlpack # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ Name: dlpack -Version: 0.3 +Version: 0.6 Release: 0 Summary: DLPack: Open In Memory Tensor Structure License: Apache-2.0 URL: https://github.com/dmlc/dlpack -Source0: https://github.com/dmlc/dlpack/archive/v0.3.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/dmlc/dlpack/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ @@ -43,7 +43,6 @@ * Quick swapping of backend implementations, like different version of BLAS * For final users, this could bring more operators, and possibility of mixing usage between frameworks. - %prep %setup -q @@ -54,7 +53,6 @@ %install %cmake_install - %files devel %defattr(-,root,root) %dir %{_includedir}/dlpack ++++++ dlpack-0.3.tar.gz -> dlpack-0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/.github/workflows/main.yaml new/dlpack-0.6/.github/workflows/main.yaml --- old/dlpack-0.3/.github/workflows/main.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/dlpack-0.6/.github/workflows/main.yaml 2021-07-01 16:01:05.000000000 +0200 @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + Build: + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Setup Python + run: | + python3 -m pip install cpplint + - name: Setup@Ubuntu + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get install -y doxygen wget graphviz unzip + - name: Lint + if: startsWith(matrix.os, 'ubuntu') + run: | + ./tests/scripts/task_lint.sh + - name: Test + run: | + ./tests/scripts/task_build.sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/.travis.yml new/dlpack-0.6/.travis.yml --- old/dlpack-0.3/.travis.yml 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,46 +0,0 @@ -sudo: false - -dist: trusty - -language: cpp - -os: - - linux - - osx - -osx_image: xcode8 - -env: - # code analysis - - TASK=all_test - -branches: - only: - - master - -matrix: - exclude: - - os: osx - env: TASK=lint - -# dependent apt packages -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - doxygen - - wget - - graphviz - - unzip - -install: - - source tests/travis/setup.sh - -script: - - tests/travis/run_test.sh - -cache: - directories: - - ${HOME}/.cache/usr - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/NEWS.md new/dlpack-0.6/NEWS.md --- old/dlpack-0.3/NEWS.md 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/NEWS.md 2021-07-01 16:01:05.000000000 +0200 @@ -3,6 +3,20 @@ This file records the changes in DLPack in reverse chronological order. +## v0.4 + +- OpaqueHandle type +- Complex support +- Rename DLContext -> DLDevice + - This requires dependent frameworks to upgrade the type name. + - The ABI is backward compatible, as it is only change of constant name. + +## v0.3 + +- Add bfloat16 +- Vulkan support + + ## v0.2 - New device types - kDLMetal for Apple Metal device diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/README.md new/dlpack-0.6/README.md --- old/dlpack-0.3/README.md 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/README.md 2021-07-01 16:01:05.000000000 +0200 @@ -1,6 +1,6 @@ # DLPack: Open In Memory Tensor Structure -[](https://travis-ci.org/dmlc/dlpack) +[](https://github.com/dmlc/dlpack/actions/workflows/main.yaml) DLPack is an open in-memory tensor structure to for sharing tensor among frameworks. DLPack enables diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/apps/from_numpy/main.py new/dlpack-0.6/apps/from_numpy/main.py --- old/dlpack-0.3/apps/from_numpy/main.py 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/apps/from_numpy/main.py 2021-07-01 16:01:05.000000000 +0200 @@ -6,7 +6,7 @@ libmain = ctypes.cdll.LoadLibrary("./libmain.so") -class DLContext(ctypes.Structure): +class DLDevice(ctypes.Structure): _fields_ = [("device_type", ctypes.c_int), ("device_id", ctypes.c_int)] @@ -26,7 +26,7 @@ class DLTensor(ctypes.Structure): _fields_ = [("data", ctypes.c_void_p), - ("ctx", DLContext), + ("device", DLDevice), ("ndim", ctypes.c_int), ("dtype", DLDataType), ("shape", ctypes.POINTER(ctypes.c_int64)), @@ -74,7 +74,7 @@ # You may check array.flags here, e.g. array.flags['C_CONTIGUOUS'] dl_tensor = DLTensor() dl_tensor.data = array.ctypes.data_as(ctypes.c_void_p) - dl_tensor.ctx = DLContext(1, 0) + dl_tensor.device = DLDevice(1, 0) dl_tensor.ndim = array.ndim dl_tensor.dtype = DLDataType.TYPE_MAP[str(array.dtype)] # For 0-dim ndarrays, strides and shape will be NULL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/apps/from_numpy/numpy_dlpack.c new/dlpack-0.6/apps/from_numpy/numpy_dlpack.c --- old/dlpack-0.3/apps/from_numpy/numpy_dlpack.c 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/apps/from_numpy/numpy_dlpack.c 2021-07-01 16:01:05.000000000 +0200 @@ -9,9 +9,9 @@ int i; int ndim = a.dl_tensor.ndim; printf("data = %p\n", a.dl_tensor.data); - printf("ctx = (device_type = %d, device_id = %d)\n", - (int) a.dl_tensor.ctx.device_type, - (int) a.dl_tensor.ctx.device_id); + printf("device = (device_type = %d, device_id = %d)\n", + (int) a.dl_tensor.device.device_type, + (int) a.dl_tensor.device.device_id); printf("dtype = (code = %d, bits = %d, lanes = %d)\n", (int) a.dl_tensor.dtype.code, (int) a.dl_tensor.dtype.bits, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/contrib/dlpack/dlpackcpp.h new/dlpack-0.6/contrib/dlpack/dlpackcpp.h --- old/dlpack-0.3/contrib/dlpack/dlpackcpp.h 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/contrib/dlpack/dlpackcpp.h 2021-07-01 16:01:05.000000000 +0200 @@ -26,8 +26,8 @@ handle_.dtype.code = kDLFloat; handle_.dtype.bits = 32U; handle_.dtype.lanes = 1U; - handle_.ctx.device_type = kDLCPU; - handle_.ctx.device_id = 0; + handle_.device.device_type = kDLCPU; + handle_.device.device_id = 0; handle_.shape = nullptr; handle_.strides = nullptr; handle_.byte_offset = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/docs/Doxyfile new/dlpack-0.6/docs/Doxyfile --- old/dlpack-0.3/docs/Doxyfile 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/docs/Doxyfile 2021-07-01 16:01:05.000000000 +0200 @@ -1249,7 +1249,7 @@ HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated ( -# YES) or that it should be included in the master .chm file ( NO). +# YES) or that it should be included in the main .chm file ( NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. @@ -2040,12 +2040,6 @@ #EXTERNAL_PAGES = YES -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of 'which perl'). -# The default file (with absolute path) is: /usr/bin/perl. - -PERL_PATH = /usr/bin/perl - #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- @@ -2059,14 +2053,6 @@ CLASS_DIAGRAMS = YES -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see: -# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = # You can include diagrams made with dia in doxygen documentation. Doxygen will # then run dia to produce the diagram and insert it in the documentation. The diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/include/dlpack/dlpack.h new/dlpack-0.6/include/dlpack/dlpack.h --- old/dlpack-0.3/include/dlpack/dlpack.h 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/include/dlpack/dlpack.h 2021-07-01 16:01:05.000000000 +0200 @@ -13,7 +13,7 @@ #endif /*! \brief The current version of dlpack */ -#define DLPACK_VERSION 020 +#define DLPACK_VERSION 60 /*! \brief DLPACK_DLL prefix for windows */ #ifdef _WIN32 @@ -33,18 +33,17 @@ extern "C" { #endif /*! - * \brief The device type in DLContext. + * \brief The device type in DLDevice. */ typedef enum { /*! \brief CPU device */ kDLCPU = 1, /*! \brief CUDA GPU device */ - kDLGPU = 2, + kDLCUDA = 2, /*! - * \brief Pinned CUDA GPU device by cudaMallocHost - * \note kDLCPUPinned = kDLCPU | kDLGPU + * \brief Pinned CUDA CPU memory by cudaMallocHost */ - kDLCPUPinned = 3, + kDLCUDAHost = 3, /*! \brief OpenCL devices. */ kDLOpenCL = 4, /*! \brief Vulkan buffer for next generation graphics. */ @@ -56,31 +55,56 @@ /*! \brief ROCm GPUs for AMD GPUs */ kDLROCM = 10, /*! + * \brief Pinned ROCm CPU memory allocated by hipMallocHost + */ + kDLROCMHost = 11, + /*! * \brief Reserved extension device type, * used for quickly test extension device * The semantics can differ depending on the implementation. */ kDLExtDev = 12, + /*! + * \brief CUDA managed/unified memory allocated by cudaMallocManaged + */ + kDLCUDAManaged = 13, } DLDeviceType; /*! - * \brief A Device context for Tensor and operator. + * \brief A Device for Tensor and operator. */ typedef struct { /*! \brief The device type used in the device. */ DLDeviceType device_type; - /*! \brief The device index */ + /*! + * \brief The device index. + * For vanilla CPU memory, pinned memory, or managed memory, this is set to 0. + */ int device_id; -} DLContext; +} DLDevice; /*! * \brief The type code options DLDataType. */ typedef enum { + /*! \brief signed integer */ kDLInt = 0U, + /*! \brief unsigned integer */ kDLUInt = 1U, + /*! \brief IEEE floating point */ kDLFloat = 2U, + /*! + * \brief Opaque handle type, reserved for testing purposes. + * Frameworks need to agree on the handle data type for the exchange to be well-defined. + */ + kDLOpaqueHandle = 3U, + /*! \brief bfloat16 */ kDLBfloat = 4U, + /*! + * \brief complex number + * (C/C++/Python layout: compact struct per complex number) + */ + kDLComplex = 5U, } DLDataTypeCode; /*! @@ -90,6 +114,7 @@ * - float: type_code = 2, bits = 32, lanes=1 * - float4(vectorized 4 float): type_code = 2, bits = 32, lanes=4 * - int8: type_code = 0, bits = 8, lanes=1 + * - std::complex<float>: type_code = 5, bits = 64, lanes = 1 */ typedef struct { /*! @@ -130,8 +155,8 @@ * \endcode */ void* data; - /*! \brief The device context of the tensor */ - DLContext ctx; + /*! \brief The device of the tensor */ + DLDevice device; /*! \brief Number of dimensions */ int ndim; /*! \brief The data type of the pointer*/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/tests/scripts/task_lint.sh new/dlpack-0.6/tests/scripts/task_lint.sh --- old/dlpack-0.3/tests/scripts/task_lint.sh 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/tests/scripts/task_lint.sh 2021-07-01 16:01:05.000000000 +0200 @@ -3,7 +3,7 @@ if [ ! -f bin/lint.py ]; then echo "Grab linter ..." - wget https://raw.githubusercontent.com/dmlc/dmlc-core/master/scripts/lint.py + wget https://raw.githubusercontent.com/dmlc/dmlc-core/main/scripts/lint.py mv lint.py bin/lint.py fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/tests/travis/run_test.sh new/dlpack-0.6/tests/travis/run_test.sh --- old/dlpack-0.3/tests/travis/run_test.sh 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/tests/travis/run_test.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#!/bin/bash -if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then - if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then - ./tests/scripts/task_lint.sh || exit -1 - fi -fi - -if [ ${TASK} == "build" ] || [ ${TASK} == "all_test" ]; then - ./tests/scripts/task_build.sh || exit -1 -fi - -echo "All travis test passed.." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dlpack-0.3/tests/travis/setup.sh new/dlpack-0.6/tests/travis/setup.sh --- old/dlpack-0.3/tests/travis/setup.sh 2020-02-17 01:02:56.000000000 +0100 +++ new/dlpack-0.6/tests/travis/setup.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then - if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then - pip install --user cpplint - fi -fi \ No newline at end of file