This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake --build build --target check-imex & code=$?; sleep 2; ps -ef >ps.txt; fg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -vx | |
set -eu | |
test -z ${1+x} && exit 1 | |
ver=$1 | |
create_branch() { | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /opt/intel/oneapi/ -name '*.so*' -exec cp -n {} ~/.conda/envs/triton/lib \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: triton | |
channels: | |
- conda-forge | |
dependencies: | |
- gxx_linux-64 11.*.* | |
- gcc_linux-64 11.*.* | |
- pip 23.* | |
- zlib | |
- cmake 3.22.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
waitForPageLoad(x, y, color, attempts) | |
{ | |
Loop attempts | |
{ | |
sleep(200) | |
Loaded := PixelGetColor(x, y) | |
;MsgBox("Wait for " . color . " Get " . Loaded) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# specific settings go here | |
export HTTPS_PROXY="$https_proxy" | |
export EDITOR=vim | |
test -L sh.sh || ln -s sc.sh sh.sh | |
test -d /localdisk2/afedotov && export HOME=/localdisk2/afedotov | |
cd | |
export PS1="\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\] `pwd -P`\[\033[0m\]\n$ " |
NewerOlder