Skip to content

Conversation

wsmoses
Copy link
Member

@wsmoses wsmoses commented Mar 27, 2025

No description provided.

if !isfile(path * "/libtpu.so")
Downloads.download(
"https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu-nightly/libtpu_nightly-0.1.dev20250313+nightly-py3-none-manylinux_2_31_x86_64.whl",
"https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu-nightly/libtpu_nightly-0.1.dev20250326+nightly-py3-none-manylinux_2_31_x86_64.whl",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
"https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu-nightly/libtpu_nightly-0.1.dev20250326+nightly-py3-none-manylinux_2_31_x86_64.whl",
"https://storage.googleapis.com/libtpu-nightly-releases/wheels/libtpu-nightly/libtpu_nightly-0.1.dev20250326+nightly-py3-none-manylinux_2_31_x86_64.whl",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Reactant.jl/src/Compiler.jl

Lines 1193 to 1197 in a3723b9

for (i, arg) in enumerate(linear_args)
if i preserved_args_idx
MLIR.API.mlirFuncSetArgAttr(
func3, i - 1, "reactant.donated", MLIR.IR.UnitAttribute()
)

func3, i - 1, "reactant.donated", MLIR.IR.UnitAttribute()
)
end
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
end

Comment on lines +1203 to +1204
MLIR.API.mlirOperationDestroy(op.operation)
op.operation = MLIR.API.MlirOperation(C_NULL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
MLIR.API.mlirOperationDestroy(op.operation)
op.operation = MLIR.API.MlirOperation(C_NULL)
MLIR.API.mlirOperationDestroy(op.operation)
op.operation = MLIR.API.MlirOperation(C_NULL)

# Add a `donated` attr to the function arguments. This doesn't affect XLA, but lets us
# check which arguments were donated.
preserved_args_idx = last.(preserved_args)
if backend != "tpu"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avik-pal this is required for TPU (unknown attributes create a bug where it fails to serialize)

@wsmoses wsmoses merged commit 5ff167e into main Mar 27, 2025
49 of 56 checks passed
@wsmoses wsmoses deleted the ftpu branch March 27, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant