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 .github/workflows/aipu-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
source ~/env_setup.sh
export FLAGTREE_BACKEND=aipu
cd python
python3.10 -m pip install . --no-build-isolation -v
MAX_JOBS=64 python3.10 -m pip install . --no-build-isolation -v

- name: FlagTree Test on AIPU
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions third_party/aipu/backend/aipu_torch_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <c10/util/ArrayRef.h>

#include <torch/csrc/Device.h>
#include <torch/csrc/autograd/autograd_not_implemented_fallback.h>
#include <torch/csrc/jit/serialization/pickler.h>
#include <torch/extension.h>

Expand Down Expand Up @@ -328,6 +329,11 @@ TORCH_LIBRARY_IMPL(aten, PrivateUse1, m) {
m.impl("aten::fill_.Scalar", &fill_scalar_aipu);
}

// Register the autograd dispatch key for operators that have no dispatches
TORCH_LIBRARY_IMPL(aten, AutogradPrivateUse1, m) {
m.impl("isfinite", torch::autograd::autogradNotImplementedFallback());
}

namespace aipu {

bool is_available() { return context() != nullptr; }
Expand Down