From 991cfdcbcc0f0de2fa51a792d541b3aba2370d90 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Mon, 2 Nov 2020 21:57:10 +0000 Subject: [PATCH] Updated to use kp instead of komputepy for module name --- docs/conf.py | 2 +- docs/overview/python-package.rst | 10 +++++----- python/src/main.cpp | 2 +- python/test/test_kompute.py | 2 +- setup.py | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2daab88..f1255e3 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ # -- Project information ----------------------------------------------------- import sys import os -import komputepy +import kp project = 'Vulkan Kompute' copyright = '2020, The Institute for Ethical AI & Machine Learning' diff --git a/docs/overview/python-package.rst b/docs/overview/python-package.rst index 92dc8ca..0a8eb7a 100644 --- a/docs/overview/python-package.rst +++ b/docs/overview/python-package.rst @@ -12,9 +12,9 @@ Below is a diagram that provides insights on the relationship between Vulkan Kom Manager ------- -The Kompute Manager provides a high level interface to simplify interaction with underlying :class:`komputepy.Sequence` of Operations. +The Kompute Manager provides a high level interface to simplify interaction with underlying :class:`kp.Sequence` of Operations. -.. autoclass:: komputepy.Manager +.. autoclass:: kp.Manager :members: @@ -23,7 +23,7 @@ Sequence The Kompute Sequence consists of batches of Kompute Operations, which are executed on a respective GPU queue. The execution of sequences can be synchronous or asynchronous, and it can be coordinated through its respective Vulkan Fence. -.. autoclass:: komputepy.Sequence +.. autoclass:: kp.Sequence :members: @@ -32,13 +32,13 @@ Tensor The Kompute Tensor is the atomic unit in Kompute, and it is used primarily for handling Host and GPU Device data. -.. autoclass:: komputepy.Tensor +.. autoclass:: kp.Tensor :members: TensorType ------- -.. automodule:: komputepy +.. automodule:: kp :members: diff --git a/python/src/main.cpp b/python/src/main.cpp index 34a0e6b..0f10ea3 100644 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -5,7 +5,7 @@ namespace py = pybind11; -PYBIND11_MODULE(komputepy, m) { +PYBIND11_MODULE(kp, m) { py::enum_(m, "TensorTypes", "Enum with GPU memory types for Tensor.") .value("device", kp::Tensor::TensorTypes::eDevice, "Tensor holding data in GPU memory.") diff --git a/python/test/test_kompute.py b/python/test/test_kompute.py index 7b85de4..43baf77 100644 --- a/python/test/test_kompute.py +++ b/python/test/test_kompute.py @@ -1,5 +1,5 @@ -from komputepy import Tensor, Manager, Sequence +from kp import Tensor, Manager, Sequence def test_opmult(): """ diff --git a/setup.py b/setup.py index e09673a..0b5db2f 100644 --- a/setup.py +++ b/setup.py @@ -65,12 +65,12 @@ class CMakeBuild(build_ext): subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) setup( - name='komputepy', + name='kp', version='0.0.1', author='Alejandro Saucedo', - description='Blazing fast, mobile-enabled, asynchronous, and optimized for advanced GPU processing usecases.', + description='Vulkan Kompute: Blazing fast, mobile-enabled, asynchronous, and optimized for advanced GPU processing usecases.', long_description='', - ext_modules=[CMakeExtension('komputepy')], + ext_modules=[CMakeExtension('kp')], cmdclass=dict(build_ext=CMakeBuild), zip_safe=False, )