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w,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw, , , , , , , , , , , ,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,
Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw, ,Cw, , , , , , , , , , , ,Cw,Cw,Cw,Cw,
@leshikus
leshikus / install-cluster.sh
Created April 4, 2025 07:54
Install multi-node k8s via kind locally
#!/bin/sh
set -e
set_env() {
arch=amd64
cluster_name=k8s-test
}
install_exec() {
@leshikus
leshikus / plugin.py
Created August 20, 2024 20:48
a snipped from pytest_select plugin
def pytest_collection_modifyitems(session, config, items):
seen_test_names = set()
for item in items:
seen_test_names.add(item.name)
seen_test_names.add(item.nodeid)
selection_file_name = config.getoption("deselectfromfile")
if selection_file_name is not None:
@leshikus
leshikus / munhen.py
Created April 30, 2024 08:42
Solve munhen = ayti * chat
#!/usr/bin/python3
for m in range(1, 10):
su = set(range(0, 10)) - { m }
for u in su:
sn = su - { u }
for n in sn:
sh = sn - { n }
for h in sh:
se = sh - { h }
@leshikus
leshikus / test-parallel.sh
Created April 17, 2024 09:44
Test how many parallel processes run
cmake --build build --target check-imex & code=$?; sleep 2; ps -ef >ps.txt; fg
rm -rf /home/jovyan/.triton/cache && ( cd intel-xpu-backend-for-triton/python && python3 -m pytest -n 1 --verbose --device xpu test/regression/test_functional_regressions.py 2>&1 ) | tee test.log
@leshikus
leshikus / check-rev.sh
Created March 13, 2024 18:46
Debug CI problem
#!/bin/sh
set -vx
set -eu
test -z ${1+x} && exit 1
ver=$1
create_branch() {
cd ..
@leshikus
leshikus / copy_oneapi.sh
Created February 29, 2024 09:28
Get all libs from OneAPI
find /opt/intel/oneapi/ -name '*.so*' -exec cp -n {} ~/.conda/envs/triton/lib \;
@leshikus
leshikus / triton.yaml
Created February 15, 2024 21:45
conda env for triton
name: triton
channels:
- conda-forge
dependencies:
- gxx_linux-64 11.*.*
- gcc_linux-64 11.*.*
- pip 23.*
- zlib
- cmake 3.22.*
@leshikus
leshikus / conda-compile-triton.sh
Last active April 12, 2024 21:02
Compile triton with conda
set -euvx
name=${1:-triton}
rm -rf intel-xpu-backend-for-triton/ llvm packages/ ~/.triton/cache intel-extension-for-pytorch pytorch
git clone https://github.com/intel/intel-xpu-backend-for-triton -b lesh/3/add-conda-basekit
set +uvx
. ~/.conda/etc/profile.d/conda.sh
#conda deactivate