-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·73 lines (60 loc) · 1.92 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
68
69
70
71
72
73
#!/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.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'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.'''
# Keywords
keywords = ['Matrix Multiplication', 'ISPC', 'GPU', 'CUDA', 'HIP', 'Metal',
'OpenCL']
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=keywords,
classifiers=classifiers)