1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Release version 0.5.0 (#146)

* Set version to 0.5.0

* Update debian/control to the new version (incompatible with 0.4.x)

* Rename .install files to match SO version

Co-authored-by: Veselin Georgiev <anrieff@gmail.com>
This commit is contained in:
Xorg 2020-05-25 20:33:26 +00:00 committed by GitHub
parent dfc8b2fdbd
commit 2343193401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 104 additions and 24 deletions

View file

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)
set(VERSION "0.4.1")
set(SOVERSION 14)
set(VERSION "0.5.0")
set(SOVERSION 15)
project(
cpuid
LANGUAGES C CXX ASM_MASM

View file

@ -58,3 +58,27 @@ Version 0.4.1 (2019-02-05):
* Fix P-III Celeron misdetection
* Support for Skylake-X (#116)
* Support for Zen+ Threadripper
Version 0.5.0 (2020-05-23):
* A backwards-incompatible change, since the sizeof cpu_raw_data_t and
cpu_id_t are now different.
* Support for Hygon Dhyana (#123)
* Support for Zen 2 (#125, #137)
* Stubs for AArch64 (#127)
* Support for Intel AVX512VNNI detection (#129)
* Typo fixes (#130)
* Support for get_total_cpus on Haiku (#131)
* Fix build on PPC (#132)
* Support for CMake build system (#138) and vcpkg packaging (#140)
* Support for Cannon Lake
* Support for Coffee Lake-U and Coffee Lake Refresh
* Support for Comet Lake
* Support for Ice Lake
* Support for Renoir
* Fix ThreadSanitizer report (#142)
* Better support of L1 intruction cache (--l1i-assoc, --l1i-cacheline)
* Support for Ivy Bridge-E (Xeon)
* Support up to 4 subleaf entries for CPUID leaf 0x8000001D and
fix detection of L3 cache on Zen 2
* Support for RDSEED/ADX/SHA_NI detection (AMD)
* Support for ABM/AVX512VBMI/AVX512VBMI2 detection (Intel)

26
bump_version.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "$0 NEW_VERSION SO_VERSION"
exit 1
fi
GIT_DIR="$(git rev-parse --show-toplevel)"
OLD_VERSION="$(git describe --tags --abbrev=0 | sed 's/^v//')"
NEW_VERSION="$1"
SO_VERSION="$2"
DATE="$(date '+%Y-%m-%d')"
echo -e "\nVersion $NEW_VERSION ($DATE):" >> "$GIT_DIR/ChangeLog"
sed -i "s|\[$OLD_VERSION\]|\[$NEW_VERSION\]|" "$GIT_DIR/configure.ac"
sed -i "s|LIBCPUID_CURRENT=.*|dnl $(echo $SO_VERSION | tr . :) Version $NEW_VERSION:\nLIBCPUID_CURRENT=$(echo $SO_VERSION | cut -d. -f1)|" "$GIT_DIR/configure.ac"
sed -i "s|LIBCPUID_AGE=.*|LIBCPUID_AGE=$(echo $SO_VERSION | cut -d. -f2)|" "$GIT_DIR/configure.ac"
sed -i "s|LIBCPUID_REVISION=.*|LIBCPUID_REVISION=$(echo $SO_VERSION | cut -d. -f3)|" "$GIT_DIR/configure.ac"
sed -i "s|VERSION \"$OLD_VERSION\"|VERSION \"$NEW_VERSION\"|" "$GIT_DIR/CMakeLists.txt"
sed -i "s|set(SOVERSION .*)|set(SOVERSION $(echo $SO_VERSION | cut -d. -f1))|" "$GIT_DIR/CMakeLists.txt"
sed -i "1s/^/libcpuid \($NEW_VERSION\) unstable; urgency=low\n/" "$GIT_DIR/debian/changelog"
sed -i "s|$OLD_VERSION|$NEW_VERSION|g" "$GIT_DIR/libcpuid/"{Makefile.x64,Makefile.x86,libcpuid.dsp,libcpuid_vc10.vcxproj,libcpuid_vc71.vcproj}
sed -i "s|\\\version $OLD_VERSION|\\\version $NEW_VERSION|" "$GIT_DIR/libcpuid/libcpuid.h"
echo "Model from https://github.com/anrieff/libcpuid/commit/a6123e8139ce73e26b5711c3e119b5b2bc9c9378"
echo -e "Also, make appropriate changes in follow files:\n- ChangeLog\n- debian/changelog\n- configure.ac\n- libcpuid/libcpuid.h"

View file

@ -1,4 +1,4 @@
AC_INIT([libcpuid CPU Identification library], [0.4.1], [libcpuid-devel@lists.sourceforge.net], [libcpuid])
AC_INIT([libcpuid CPU Identification library], [0.5.0], [libcpuid-devel@lists.sourceforge.net], [libcpuid])
AC_CONFIG_SRCDIR([libcpuid/libcpuid.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
@ -23,9 +23,10 @@ dnl 12:1:2 Version 0.2.2: more processors support, *BSD/Solaris support, updat
dnl 13:0:0 Version 0.3.0: increment max Intel leaf 04 entries to 8
dnl 14:0:0 Version 0.4.0: add one more field per cpu_raw_data_t and cpu_id_t
dnl 14:0:1 Version 0.4.1: DB updates, and a lot of rdmsr improvements
LIBCPUID_CURRENT=14
dnl 15:0:0 Version 0.5.0: add one more field per cpu_raw_data_t (amd_fn8000001dh) and cpu_id_t l1_{data,instruction}_{assoc,cacheline}
LIBCPUID_CURRENT=15
LIBCPUID_AGE=0
LIBCPUID_REVISION=1
LIBCPUID_REVISION=0
AC_SUBST([LIBCPUID_AGE])
AC_SUBST([LIBCPUID_REVISION])
AC_SUBST([LIBCPUID_CURRENT])
@ -66,4 +67,3 @@ AC_CONFIG_FILES([
libcpuid/Doxyfile
])
AC_OUTPUT

27
debian/changelog vendored
View file

@ -1,3 +1,30 @@
libcpuid (0.5.0) unstable; urgency=low
* A backwards-incompatible change, since the sizeof cpu_raw_data_t and
cpu_id_t are now different.
* Support for Hygon Dhyana (#123)
* Support for Zen 2 (#125, #137)
* Stubs for AArch64 (#127)
* Support for Intel AVX512VNNI detection (#129)
* Typo fixes (#130)
* Support for get_total_cpus on Haiku (#131)
* Fix build on PPC (#132)
* Support for CMake build system (#138) and vcpkg packaging (#140)
* Support for Cannon Lake
* Support for Coffee Lake-U and Coffee Lake Refresh
* Support for Comet Lake
* Support for Ice Lake
* Support for Renoir
* Fix ThreadSanitizer report (#142)
* Better support of L1 intruction cache (--l1i-assoc, --l1i-cacheline)
* Support for Ivy Bridge-E (Xeon)
* Support up to 4 subleaf entries for CPUID leaf 0x8000001D and
fix detection of L3 cache on Zen 2
* Support for RDSEED/ADX/SHA_NI detection (AMD)
* Support for ABM/AVX512VBMI/AVX512VBMI2 detection (Intel)
-- Georgiev, Veselin <anrieff@gmail.com> Sat, 23 May 2020 20:35:00 +0200
libcpuid (0.4.1) unstable; urgency=low
* Better support for Skylake Core i5 (#76)

8
debian/control vendored
View file

@ -6,19 +6,19 @@ Build-Depends: debhelper (>= 9), autotools-dev, libtool, automake, autoconf, pyt
Standards-Version: 3.9.5
Homepage: https://github.com/anrieff/libcpuid
Package: libcpuid14
Package: libcpuid15
Architecture: amd64 i386
Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Pre-Depends}
Replaces: libcpuid11, libcpuid13
Replaces: libcpuid11, libcpuid13, libcpuid14
Description: small C library for x86/x86_64 CPU detection and feature extraction
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)
Package: libcpuid14-dev
Package: libcpuid15-dev
Architecture: amd64 i386
Section: libdevel
Depends: ${misc:Depends}
Replaces: libcpuid11-dev, libcpuid13-dev
Replaces: libcpuid11-dev, libcpuid13-dev, libcpuid14-dev
Description: Development files for libcpuid
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)

View file

@ -5,7 +5,7 @@ all: libcpuid.lib
ASM = ml64 /nologo
CC = cl.exe /nologo /TC
OPTFLAGS = /MT
DEFINES = /D "VERSION=\"0.4.1\""
DEFINES = /D "VERSION=\"0.5.0\""
OBJECTS = masm-x64.obj asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_intel.obj rdtsc.obj
libcpuid.lib: $(OBJECTS)

View file

@ -12,7 +12,7 @@ all: libcpuid.lib
CC = cl.exe /nologo /TC
OPTFLAGS = /MT
DEFINES = /D "VERSION=\"0.4.1\""
DEFINES = /D "VERSION=\"0.5.0\""
OBJECTS = asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_intel.obj rdtsc.obj
libcpuid.lib: $(OBJECTS)

View file

@ -41,7 +41,7 @@ RSC=rc.exe
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.4.1\" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.5.0\" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
@ -64,7 +64,7 @@ LIB32=link.exe -lib
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.4.1\" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.5.0\" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe

View file

@ -29,7 +29,7 @@
* \file libcpuid.h
* \author Veselin Georgiev
* \date Oct 2008
* \version 0.4.1
* \version 0.5.0
*
* Version history:
*
@ -58,6 +58,9 @@
* (a backwards-incompatible change since the sizeof
* cpu_raw_data_t and cpu_id_t is now different).
* * 0.4.1 (2019-02-05): A lot of DB updates, and better RDMSR
* * 0.5.0 (2020-05-23): A lot of DB updates, detection of new CPU features,
* (a backwards-incompatible change since the sizeof
* cpu_raw_data_t and cpu_id_t is now different).
*/
/** @mainpage A simple libcpuid introduction

View file

@ -102,7 +102,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
@ -117,7 +117,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
@ -130,7 +130,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@ -142,7 +142,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@ -157,7 +157,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@ -169,7 +169,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.4.1";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.5.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>

View file

@ -19,7 +19,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="VERSION=\&quot;0.4.1\&quot;"
PreprocessorDefinitions="VERSION=\&quot;0.5.0\&quot;"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@ -60,7 +60,7 @@
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="VERSION=\&quot;0.4.1\&quot;"
PreprocessorDefinitions="VERSION=\&quot;0.5.0\&quot;"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
@ -99,7 +99,7 @@
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="VERSION=\&quot;0.4.1\&quot;"
PreprocessorDefinitions="VERSION=\&quot;0.5.0\&quot;"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"