From 65ea750cfe8c23e89b27f2fe0327b45f85793539 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 20 Jul 2023 14:17:45 +0100 Subject: [PATCH] temp! --- CMakeLists.txt | 2 +- include/ur.py | 5 +++-- include/ur_api.h | 5 +++-- include/ur_ddi.h | 2 +- scripts/Doxyfile | 2 +- scripts/core/platform.yml | 3 +++ scripts/parse_specs.py | 10 +++++----- source/loader/layers/ur_proxy_layer.hpp | 2 +- source/loader/ur_loader.hpp | 2 +- source/ur_api.cpp | 2 +- 10 files changed, 20 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8e58472ff..ec02f37b86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception cmake_minimum_required(VERSION 3.14.0 FATAL_ERROR) -project(unified-runtime VERSION 0.6.0) +project(unified-runtime VERSION 0.7.0) include(GNUInstallDirs) include(CheckCXXSourceCompiles) diff --git a/include/ur.py b/include/ur.py index f48acbd21b..ec42418a4f 100644 --- a/include/ur.py +++ b/include/ur.py @@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception @file ur.py - @version v0.6-r0 + @version v0.7-r0 """ import platform @@ -569,7 +569,8 @@ def __str__(self): ## ::UR_MAJOR_VERSION and ::UR_MINOR_VERSION class ur_api_version_v(IntEnum): _0_6 = UR_MAKE_VERSION( 0, 6 ) ## version 0.6 - CURRENT = UR_MAKE_VERSION( 0, 6 ) ## latest known version + _0_7 = UR_MAKE_VERSION( 0, 7 ) ## version 0.7 + CURRENT = UR_MAKE_VERSION( 0, 7 ) ## latest known version class ur_api_version_t(c_int): def __str__(self): diff --git a/include/ur_api.h b/include/ur_api.h index 1ff0ba0905..7df48cb743 100644 --- a/include/ur_api.h +++ b/include/ur_api.h @@ -7,7 +7,7 @@ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * * @file ur_api.h - * @version v0.6-r0 + * @version v0.7-r0 * */ #ifndef UR_API_H_INCLUDED @@ -1021,7 +1021,8 @@ urPlatformGetInfo( /// ::UR_MAJOR_VERSION and ::UR_MINOR_VERSION typedef enum ur_api_version_t { UR_API_VERSION_0_6 = UR_MAKE_VERSION(0, 6), ///< version 0.6 - UR_API_VERSION_CURRENT = UR_MAKE_VERSION(0, 6), ///< latest known version + UR_API_VERSION_0_7 = UR_MAKE_VERSION(0, 7), ///< version 0.7 + UR_API_VERSION_CURRENT = UR_MAKE_VERSION(0, 7), ///< latest known version /// @cond UR_API_VERSION_FORCE_UINT32 = 0x7fffffff /// @endcond diff --git a/include/ur_ddi.h b/include/ur_ddi.h index 958f5ca29b..a0c2a5012d 100644 --- a/include/ur_ddi.h +++ b/include/ur_ddi.h @@ -7,7 +7,7 @@ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * * @file ur_ddi.h - * @version v0.6-r0 + * @version v0.7-r0 * */ #ifndef UR_DDI_H_INCLUDED diff --git a/scripts/Doxyfile b/scripts/Doxyfile index 05b93c5ac5..c038d5276d 100644 --- a/scripts/Doxyfile +++ b/scripts/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "Intel One API Unified Runtime API" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = v0.6 +PROJECT_NUMBER = v0.7 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/scripts/core/platform.yml b/scripts/core/platform.yml index 6a0d350703..f7020b4138 100644 --- a/scripts/core/platform.yml +++ b/scripts/core/platform.yml @@ -130,6 +130,9 @@ etors: - name: "0_6" value: "$X_MAKE_VERSION( 0, 6 )" desc: "version 0.6" + - name: "0_7" + value: "$X_MAKE_VERSION( 0, 7 )" + desc: "version 0.7" --- #-------------------------------------------------------------------------- type: function desc: "Returns the API version supported by the specified platform" diff --git a/scripts/parse_specs.py b/scripts/parse_specs.py index d0094f958c..07ae086efd 100644 --- a/scripts/parse_specs.py +++ b/scripts/parse_specs.py @@ -18,8 +18,8 @@ import ctypes import itertools -default_version = "0.5" -all_versions = ["0.5", "1.0", "1.1", "2.0"] +default_version = "0.7" +all_versions = ["0.6", "0.7"] """ preprocess object @@ -915,9 +915,9 @@ def parse(section, version, tags, meta, ref): for c in '_-': name = name.replace(c, ' ') elif header: - # for d in _make_versions(d, float(version)): - objects.append(d) - meta = _generate_meta(d, header['ordinal'], meta) + for d in _make_versions(d, float(version)): + objects.append(d) + meta = _generate_meta(d, header['ordinal'], meta) if header: specs.append({ diff --git a/source/loader/layers/ur_proxy_layer.hpp b/source/loader/layers/ur_proxy_layer.hpp index da45017a5f..782a7e241b 100644 --- a/source/loader/layers/ur_proxy_layer.hpp +++ b/source/loader/layers/ur_proxy_layer.hpp @@ -20,7 +20,7 @@ /////////////////////////////////////////////////////////////////////////////// class __urdlllocal proxy_layer_context_t { public: - ur_api_version_t version = UR_API_VERSION_0_6; + ur_api_version_t version = UR_API_VERSION_CURRENT; virtual std::vector getNames() const = 0; virtual bool isAvailable() const = 0; diff --git a/source/loader/ur_loader.hpp b/source/loader/ur_loader.hpp index ad445d2027..8a0f4a8c23 100644 --- a/source/loader/ur_loader.hpp +++ b/source/loader/ur_loader.hpp @@ -30,7 +30,7 @@ using platform_vector_t = std::vector; class context_t { public: - ur_api_version_t version = UR_API_VERSION_0_6; + ur_api_version_t version = UR_API_VERSION_CURRENT; platform_vector_t platforms; AdapterRegistry adapter_registry; diff --git a/source/ur_api.cpp b/source/ur_api.cpp index c8362e490c..424290d88f 100644 --- a/source/ur_api.cpp +++ b/source/ur_api.cpp @@ -7,7 +7,7 @@ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * * @file ur_api.cpp - * @version v0.6-r0 + * @version v0.7-r0 * */ #include "ur_api.h"