From e29aae89ddae454506e62dacdd7acd03323ae339 Mon Sep 17 00:00:00 2001 From: Jan Pfeifer Date: Wed, 26 Feb 2025 10:22:22 +0100 Subject: [PATCH] Updated C/C++ wrapper version number. Bumped version to 0.6.2. --- c/gomlx/xlabuilder/xlabuilder.cpp | 2 +- docs/CHANGELOG.md | 4 ++++ xlabuilder/op_types.txt | 7 +++++-- xlabuilder/xlabuilder.go | 6 ++++-- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/c/gomlx/xlabuilder/xlabuilder.cpp b/c/gomlx/xlabuilder/xlabuilder.cpp index 6cbb074..a471fef 100644 --- a/c/gomlx/xlabuilder/xlabuilder.cpp +++ b/c/gomlx/xlabuilder/xlabuilder.cpp @@ -42,7 +42,7 @@ using namespace std; // This often lags behind Gopjrt version, if/when the C/C++ wrapper doesn't change -- // we don't bump the version of the C/C++ code if it doesn't change. // But when it changes, it matches the Gopjrt version it's being released with. -const char *GopjrtXlaBuilderVersion = "v0.6.0"; +const char *GopjrtXlaBuilderVersion = "v0.6.2"; // ShapeFromXlaShape allocates and sets a new Shape struct set with the same // shape defined by xla::Shape. C++ only. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 168943c..557b7fc 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,9 @@ # Gopjrt Changelog +# v0.6.2 - 2025/02/26 + +* Fixed C/C++ wrapper version. + # v0.6.1 - 2025/02/26 * Package `xlabuilder`: diff --git a/xlabuilder/op_types.txt b/xlabuilder/op_types.txt index 49d8bc6..8543ed3 100644 --- a/xlabuilder/op_types.txt +++ b/xlabuilder/op_types.txt @@ -226,8 +226,11 @@ BitwiseXor:two // BitwiseNot returns the element-wise bitwise AND operation. BitwiseNot:one - Bitcast:special +#################################### IMPORTANT #################################### +# - New ops must be appended to the bottom -- changing the order would break +# all types of compatibility. +# - Any changes require a bump in xlabuilder.cpp GopjrtXlaBuilderVersion. +#################################### IMPORTANT #################################### -################## New ops must be appended to the bottom. ################## diff --git a/xlabuilder/xlabuilder.go b/xlabuilder/xlabuilder.go index c49a2db..7bbaf9c 100644 --- a/xlabuilder/xlabuilder.go +++ b/xlabuilder/xlabuilder.go @@ -209,12 +209,14 @@ func CVersion() string { // // This is needed because they can go out-of-sync in developers machines -- if one updates // the Go library, but not the corresponding C/C++ libgomlx_xlabuilder.so library. -var MatchingCVersion = "v0.6.0" +var MatchingCVersion = "v0.6.2" func init() { if CVersion() != MatchingCVersion { klog.Errorf( "Gopjrt C/C++ library libgomlx_xlabuilder.so version is %q, but this Gopjrt "+ - "version requires libgomlx_xlabuilder.so version %q", CVersion(), MatchingCVersion) + "version requires libgomlx_xlabuilder.so version %q. "+ + "See https://github.com/gomlx/gopjrt on how to install the newest version.", + CVersion(), MatchingCVersion) } }