File tree 3 files changed +8
-8
lines changed 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ new_local_repository(
44
44
45
45
############################# OpenXLA Setup ###############################
46
46
47
- # To build PyTorch/XLA with OpenXLA to a new revision , update following xla_hash to
48
- # the openxla git commit hash.
49
- xla_hash = '509f93bf49818a9998c0929fbe57fd0baed3ede9'
47
+ # To build PyTorch/XLA with a new revison of OpenXLA , update the xla_hash to
48
+ # the openxla git commit hash and note the date of the commit .
49
+ xla_hash = '37b580d0dd7b52e611430d33424159719e363ffc' # Committed on 2025/5/13.
50
50
51
51
http_archive (
52
52
name = "xla" ,
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ std::vector<xla::Literal> IfrtComputationClient::TransferFromDevice(
430
430
std::vector<xla::Literal> literals;
431
431
literals.reserve (handles.size ());
432
432
int64_t total_size = 0 ;
433
- for (auto handle : handles) {
433
+ for (const auto & handle : handles) {
434
434
// Use XLA replication to reassemble the sharded data. If input handle
435
435
// is not sharded, then it is a no-op.
436
436
auto ifrt_data = std::dynamic_pointer_cast<IfrtData>(handle);
@@ -501,9 +501,9 @@ std::vector<ComputationClient::ComputationPtr> IfrtComputationClient::Compile(
501
501
mlir::ModuleOp::create (mlir::UnknownLoc::get (&context));
502
502
torch_xla::ConvertHloToStableHlo (instance.computation .mutable_proto (),
503
503
&mlir_module);
504
- std::unique_ptr <xla::ifrt::LoadedExecutable> executable =
504
+ std::shared_ptr <xla::ifrt::LoadedExecutable> executable =
505
505
ConsumeValue (client_->GetDefaultCompiler ()->Compile (
506
- std::make_unique<xla::ifrt::HloProgram>(std::move ( mlir_module) ),
506
+ std::make_unique<xla::ifrt::HloProgram>(mlir_module),
507
507
std::make_unique<xla::ifrt::XlaCompileOptions>(compile_options,
508
508
devices_list)));
509
509
StableHloCompileCounter ()->AddValue (1 );
Original file line number Diff line number Diff line change @@ -253,13 +253,13 @@ class IfrtComputationClient : public ComputationClient {
253
253
struct IfrtComputation : public Computation {
254
254
IfrtComputation (xla::XlaComputation computation,
255
255
std::vector<std::string> devices,
256
- std::unique_ptr <xla::ifrt::LoadedExecutable> executable)
256
+ std::shared_ptr <xla::ifrt::LoadedExecutable> executable)
257
257
: Computation(std::move(computation), std::move(devices)),
258
258
executable (std::move(executable)) {
259
259
output_shardings_ = this ->executable ->GetOutputShardings ();
260
260
}
261
261
262
- std::unique_ptr <xla::ifrt::LoadedExecutable> executable;
262
+ std::shared_ptr <xla::ifrt::LoadedExecutable> executable;
263
263
std::optional<std::vector<xla::OpSharding>> output_shardings_;
264
264
};
265
265
};
You can’t perform that action at this time.
0 commit comments