-
Notifications
You must be signed in to change notification settings - Fork 30
Fix tpu #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
"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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func3, i - 1, "reactant.donated", MLIR.IR.UnitAttribute() | ||
) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
end |
MLIR.API.mlirOperationDestroy(op.operation) | ||
op.operation = MLIR.API.MlirOperation(C_NULL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
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" |
There was a problem hiding this comment.
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)
No description provided.