Skip to main content

Multi-threaded Optimization Toolbox

Project description

The Multi-threaded Optimization Toolbox, MOT, is a library for parallel optimization and sampling using the graphics card for the computations. It is meant to optimize, in parallel, a large number of smaller problems, in contrast to optimizing one big problem with parallelized parts. For example, in diffusion MRI the brain is scanned in a 3D grid where each grid element, a voxel, represents its own optimization problem. The number of data points per voxel is generally small, ranging from 30 to 500 datapoints, and the models fitted to that data have generally somewhere between 6 and 20 parameters. Since each of these voxels can be analyzed independently of the others, the computations can be massively parallelized and hence programming for the graphics card can allow for a large speed gain. This software toolbox was originally built for exactly this use case, yet the algorithms and data structures are generalized such that any scientific field may take advantage of this toolbox. For the diffusion MRI package MDT to which is referred in this example, please see https://github.com/cbclab/MDT.

Can MOT help me?

To recognize if MOT can help you with your use case, try to see if your computations can be parallized in some way. If you have just one big optimization problem with 10.000 variables, MOT unfortunately can not help you. On the other hand, if you find a way to split your analysis in (a lot of; >10.000) smaller sub-problems, with ~30 parameters or less each, MOT may actually be of help.

Summary

Quick installation guide

The basic requirements for MOT are:

  • Python 3.x (recommended) or Python 2.7

  • OpenCL 1.2 (or higher) support in GPU driver or CPU runtime

Linux

For Ubuntu >= 16 you can use:

  • sudo add-apt-repository ppa:robbert-harms/cbclab

  • sudo apt update

  • sudo apt install python3-mot

For Debian users and Ubuntu < 16 users, install MOT with:

  • sudo apt install python3 python3-pip python3-pyopencl python3-devel

  • sudo pip3 install mot

Mac

Windows For Windows the short guide is:

For more information and for more elaborate installation instructions, please see: https://mot.readthedocs.org

Caveats

There are a few caveats and known issues, primarily related to OpenCL:

  • Windows support is experimental due to the difficulty of installing PyOpenCL, hopefully installing PyOpenCL will get easier on Windows soon.

  • For AMD users with Ubuntu >= 16, the new AMD GPU-Pro driver is still in beta and may not work with all the optimalization routines cd in MOT. Our recommendation at the moment (October 2016) is to use Ubuntu version 14 when using AMD hardware.

  • GPU acceleration is not possible in most virtual machines due to lack of GPU or PCI-E pass-through, this will change whenever virtual machines vendors program this feature. Our recommendation is to install Linux on your machine directly.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mot-0.3.8.tar.gz (181.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mot-0.3.8-py2.py3-none-any.whl (208.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mot-0.3.8.tar.gz.

File metadata

  • Download URL: mot-0.3.8.tar.gz
  • Upload date:
  • Size: 181.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mot-0.3.8.tar.gz
Algorithm Hash digest
SHA256 e4c6ebe0f57eba6dc893089a5d0dc2ff31d911da46120db2ffc1fa4c9a20d972
MD5 e6a7be66fba314a3c3a7e0cd70b8d5dc
BLAKE2b-256 97f7ce5b5f93490ff105cdc4e2a13b70a739b7d26d47e9169d80b66cb5466b68

See more details on using hashes here.

File details

Details for the file mot-0.3.8-py2.py3-none-any.whl.

File metadata

  • Download URL: mot-0.3.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 208.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mot-0.3.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29db58f6509869028776b98c27eac7995ccdfdbbd275bb4ac57eb6c3b195f884
MD5 cb5de046be890e1317160a0247920b66
BLAKE2b-256 0606fd1e9dcb80484edfe12424d785984cdf3ed8333113531f42218715809933

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page