forked from PyFR/GiMMiK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·67 lines (55 loc) · 1.77 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup
import sys
# Python version
if sys.version_info[:2] < (3, 9):
print('GiMMiK requires Python 3.9 or newer')
sys.exit(-1)
# GiMMiK version
vfile = open('gimmik/_version.py').read()
vsrch = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", vfile, re.M)
if vsrch:
version = vsrch.group(1)
else:
print('Unable to find a version string in gimmik/_version.py')
# Data
package_data = {
'gimmik': ['kernels/*/*.mako'],
}
# Hard dependencies
install_requires = [
'mako',
'numpy >= 1.7'
]
# Info
classifiers = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering'
]
# Long Description
long_description = '''GiMMiK is a Python based kernel generator for
matrix multiplication kernels for various accelerator platforms. For
small operator matrices the generated kernels are capable of
outperfoming the state-of-the-art general matrix multiplication
routines such as cuBLAS GEMM or clBLAS GEMM. GiMMiK was originally
developed as part of Bartosz Wozniak's master's thesis in the
Department of Computing at Imperial College London and is currently
maintained by Freddie Witherden.'''
setup(name='gimmik',
version=version,
# Packages
packages=['gimmik'],
package_data=package_data,
install_requires=install_requires,
# Metadata
description='Generator of Matrix Multiplication Kernels',
long_description=long_description,
maintainer='Freddie Witherden',
maintainer_email='[email protected]',
url='https://github.com/vincentlab/GiMMiK',
license='BSD',
keywords=['Matrix Multiplication', 'GPU', 'CUDA', 'OpenCL'],
classifiers=classifiers)