Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[AIU profiler] Introduce AIU profiler by following Kineto XPU plugin design #944

[AIU profiler] Introduce AIU profiler by following Kineto XPU plugin design

[AIU profiler] Introduce AIU profiler by following Kineto XPU plugin design #944

Workflow file for this run

name: libkineto PR Test on A10G
on:
push:
branches:
- main
pull_request:
# Use TorchBench's docker image which has all basic dependencies.
env:
DOCKER_IMAGE: "ghcr.io/pytorch/torchbench:latest"
jobs:
pr-test:
# AWS A10G GPU instance label: linux.g5.4xlarge.nvidia.gpu
# OS version: Amazon Linux 2
runs-on: linux.g5.4xlarge.nvidia.gpu
timeout-minutes: 180 # 3 hours
steps:
- name: Checkout Kineto
uses: actions/checkout@v5
with:
path: kineto
submodules: recursive
- name: Pull docker image
uses: pytorch/test-infra/.github/actions/pull-docker-image@main
with:
docker-image: ${{ env.DOCKER_IMAGE }}
- name: Install NVIDIA Driver, docker runtime, set GPU_FLAG
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
- name: Get env vars
run: |
echo GITHUB_WORKFLOW = $GITHUB_WORKFLOW
echo HOME = $HOME
echo GITHUB_ACTION = $GITHUB_ACTION
echo GITHUB_ACTIONS = $GITHUB_ACTIONS
echo GITHUB_REPOSITORY = $GITHUB_REPOSITORY
echo GITHUB_EVENT_NAME = $GITHUB_EVENT_NAME
echo GITHUB_EVENT_PATH = $GITHUB_EVENT_PATH
echo GITHUB_WORKSPACE = $GITHUB_WORKSPACE
echo GITHUB_SHA = $GITHUB_SHA
echo GITHUB_REF = $GITHUB_REF
- name: Build libkineto (static and shared library) and tests
run: |
container_name=$(docker run \
${GPU_FLAG:-} \
--tty \
--detach \
--shm-size=32gb \
-v "${PWD}/kineto:/kineto" \
-w / \
"${{ env.DOCKER_IMAGE }}"
)
echo "Container name: ${container_name}"
docker exec -t -w "/kineto" "${container_name}" bash -c "
set -eux
mkdir build_static
mkdir build_shared
pip install cmake
"
docker exec -t -w "/kineto/build_static" "${container_name}" bash -c "
set -eux
cmake -DKINETO_LIBRARY_TYPE=static ../libkineto/
make -j
"
docker exec -t -w "/kineto/build_shared" "${container_name}" bash -c "
set -eux
cmake -DKINETO_LIBRARY_TYPE=shared ../libkineto/
make -j
"
docker exec -t -w "/kineto/build_static" "${container_name}" bash -c "make test"
- name: Teardown Linux
uses: pytorch/test-infra/.github/actions/teardown-linux@main
if: always()
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true