mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Klues <>
Subject Review Request 48915: Added an example framework for consuming GPUs.
Date Sat, 18 Jun 2016 22:12:57 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos and Benjamin Mahler.

Bugs: MESOS-5649

Repository: mesos


This framework is designed to show how to build a GPU capable
framework that can accept offers with GPUs and launch tasks that use
them. The key thing to remember is that the GPU_RESOURCES capability
must be set in `FrameworkInfo` in order for a framework to receive
resource offers from agents that contain GPUs.


  src/ a4931560f1a5b3fbe41ea181477341d3ac459b58 
  src/examples/gpu_framework.cpp PRE-CREATION 



Run a master and an agent capable of handing out GPUs:
$ sudo bin/ --ip= --log_dir=/var/log/mesos --work_dir=/var/lib/mesos
$ sudo bin/ --master= --ip= --log_dir=/var/log/mesos

Run a couple of instances of the framework and verify the correct output:
$ ./src/gpu-framework --master= --num_gpus=0
$ ./src/gpu-framework --master= --num_gpus=1
$ ./src/gpu-framework --master= --num_gpus=4
$ ./src/gpu-framework --master= --no-allow_gpus --num_gpus=1


Kevin Klues

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message