Skip to content

Commit

Permalink
temp!
Browse files Browse the repository at this point in the history
  • Loading branch information
kbenzie committed Jul 31, 2023
1 parent 5b4c3d2 commit 65ea750
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions include/ur.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
5 changes: 3 additions & 2 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/ur_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions scripts/core/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions scripts/parse_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion source/loader/layers/ur_proxy_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> getNames() const = 0;
virtual bool isAvailable() const = 0;
Expand Down
2 changes: 1 addition & 1 deletion source/loader/ur_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using platform_vector_t = std::vector<platform_t>;

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;
Expand Down
2 changes: 1 addition & 1 deletion source/ur_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 65ea750

Please sign in to comment.