name = 'MXNet'
version = '0.9.3'
versionsuffix = '-Python-%(pyver)s-R-%(rver)s'

homepage = 'http://mxnet.io/'
description = """Flexible and Efficient Library for Deep Learning"""

toolchain = {'name': 'foss', 'version': '2016b'}
toolchainopts = {'cstd': 'c++11', 'opt': True, 'pic': True, 'openmp': True}

source_urls = ['https://github.com/dmlc/mxnet/archive']

# MXNet pulls in a bunch of submodules which don't have releases.
# We download the current HEAD of the repos at the current time (13/03/17)
sources = [
    'v%(version)s.tar.gz',                                              # MXNet
    'https://github.com/dmlc/ps-lite/archive/6856021ca925c7.tar.gz',    # ps-lite
    'https://github.com/dmlc/mshadow/archive/c29ac58320d7b0.tar.gz',    # mshadow
    'https://github.com/dmlc/nnvm/archive/0d64855f741e04.tar.gz',       # nnvm
    'https://github.com/dmlc/dmlc-core/archive/b32ec4aee65a66.tar.gz',  # dmlc-core
]

checksums = [
    "84971e4a0e2e9db3757623657aa5b9ec",  # v0.9.3.tar.gz
    "12c96664978c545a7269b93635719b18",  # 6856021ca925c7.tar.gz
    "3dc48183e123c650707bcf26a9254941",  # c29ac58320d7b0.tar.gz
    "fb04cb1694f1e66591a31a18bc92b451",  # 0d64855f741e04.tar.gz
    "da873c881758c0e10ac0928f86568456",  # b32ec4aee65a66.tar.gz
]

dependencies = [
    ('Python', '2.7.12'),
    ('graphviz', '0.5.1', '-Python-%(pyver)s'),
    ('OpenCV', '3.1.0'),
    ('R', '3.3.3', '-X11-20160819'),
]

moduleclass = 'math'
