Skip to content

Commit 0531dd8

Browse files
authored
Re-enable Kineto (#4157)
Signed-off-by: Pavel Chekin <[email protected]>
1 parent dc14d64 commit 0531dd8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/actions/setup-pytorch/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ runs:
126126
# CMake Error at third_party/protobuf/cmake/CMakeLists.txt:2 (cmake_minimum_required)
127127
pip install 'cmake<4.0.0'
128128
pip install -r requirements.txt
129-
USE_KINETO=0 USE_XCCL=1 USE_STATIC_MKL=1 CFLAGS="-Wno-error=maybe-uninitialized" python setup.py bdist_wheel 2>&1 | grep -v \
129+
USE_XCCL=1 USE_STATIC_MKL=1 CFLAGS="-Wno-error=maybe-uninitialized" python setup.py bdist_wheel 2>&1 | grep -v \
130130
"Double arithmetic operation is not supported on this platform with FP64 conversion emulation mode (poison FP64 kernels is enabled)." | grep -v '^$'
131131
132132
- name: Install PyTorch (built from source)

scripts/install-pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function build_pytorch {
199199
pip install 'cmake<4.0.0'
200200
pip install -r requirements.txt
201201
pip install cmake ninja
202-
USE_KINETO=0 USE_XCCL=1 USE_STATIC_MKL=1 python setup.py bdist_wheel
202+
USE_XCCL=1 USE_STATIC_MKL=1 python setup.py bdist_wheel
203203
}
204204

205205
function install_pytorch {

scripts/patch-pytorch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ echo "Applying PyTorch patches in $REPO_ROOT"
3636

3737
# put your patch applies here
3838
apply_patch https://github.com/pytorch/pytorch/pull/143553.diff
39+
40+
# https://github.com/pytorch/pytorch/pull/152007
41+
fetch_patch https://patch-diff.githubusercontent.com/raw/pytorch/kineto/pull/1066.diff
42+
cd "$REPO_ROOT/third_party/kineto"
43+
git apply "$SCRIPTS_DIR/1066.diff"

0 commit comments

Comments
 (0)