Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/gomlx/xlabuilder/xlabuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
7 changes: 5 additions & 2 deletions xlabuilder/op_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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. ##################
6 changes: 4 additions & 2 deletions xlabuilder/xlabuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Loading