MCPcopy Create free account
hub / github.com/apache/arrow / test_image_with_gpu

Function test_image_with_gpu

dev/archery/archery/docker/tests/test_docker.py:546–560  ·  view source on GitHub ↗
(arrow_compose_path)

Source from the content-addressed store, hash-verified

544
545
546def test_image_with_gpu(arrow_compose_path):
547 compose = DockerCompose(arrow_compose_path)
548
549 expected_calls = [
550 [
551 "run", "--rm", "--gpus", "all",
552 "-e", "CUDA_ENV=1",
553 "-e", "OTHER_ENV=2",
554 "-v", "/host:/container",
555 "apache/arrow:ubuntu-cuda",
556 "/bin/bash", "-c", "echo 1 > /tmp/dummy && cat /tmp/dummy",
557 ]
558 ]
559 with assert_docker_calls(compose, expected_calls):
560 compose.run('ubuntu-cuda')
561
562
563def test_listing_images(arrow_compose_path):

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
DockerComposeClass · 0.90
assert_docker_callsFunction · 0.85

Tested by

no test coverage detected