Skip to content

Commit

Permalink
more makefile stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 23, 2024
1 parent 584b59f commit 97e0b9e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,45 @@ build_docker_cuda:
build_docker_rocm:
$(call build_docker,rocm)


# Docker run

run_docker_cpu:
docker run \
-it \
--rm \
--pid host \
--entrypoint /bin/bash \
--volume $(PWD):/workspace \
--workdir /workspace \
opt-bench-cpu:local

run_docker_cuda:
docker run \
-it \
--rm \
--pid host \
--shm-size 64G \
--gpus '"device=0,1"' \
--entrypoint /bin/bash \
--volume $(PWD):/workspace \
--workdir /workspace \
opt-bench-cuda:local

run_docker_rocm:
docker run \
-it \
--rm \
--pid host \
--shm-size 64G \
--device /dev/kfd \
--device /dev/dri/renderD128 \
--device /dev/dri/renderD129 \
--entrypoint /bin/bash \
--volume $(PWD):/workspace \
--workdir /workspace \
opt-bench-rocm:local

## Tests

define test_ubuntu
Expand Down

0 comments on commit 97e0b9e

Please sign in to comment.