Skip to content

Commit

Permalink
Merge pull request #13 from jbrhm/devel
Browse files Browse the repository at this point in the history
Fix Imports
  • Loading branch information
jbrhm authored Jul 17, 2024
2 parents f5121b6 + 8a6fb17 commit 183551a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CMAKE_C_COMPILER "/usr/bin/clang-18")
set(CMAKE_CUDA_FLAGS -allow-unsupported-compiler)

project(cupybara
VERSION 1.0.0
VERSION 1.0.1
LANGUAGES CXX C CUDA
)

Expand Down Expand Up @@ -36,4 +36,4 @@ target_link_libraries(cupybara PRIVATE cublas)

target_compile_options(cupybara PUBLIC -O3)

include(cmake/installation.cmake)
include(cmake/installation.cmake)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Installation
- Download the latest release of Cupybara using the release tab on the right
- Cd to the directory the wheel was downloaded
- Run `sudo pip install --force-reinstall cupybara-1.0.0-py3-none-any.whl`
- Run `sudo pip install --force-reinstall cupybara-1.0.1-py3-none-any.whl`

## Performance
**Performance Measured On 1000x1000 Matrices**
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ cmake --install build
cd package/
python3 -m build
cd dist
sudo pip install --force-reinstall cupybara-1.0.0-py3-none-any.whl
sudo pip install --force-reinstall cupybara-1.0.1-py3-none-any.whl
4 changes: 2 additions & 2 deletions package/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cupybara"
version = "1.0.0"
version = "1.0.1"
authors = [
{ name="jbrhm", email="[email protected]" },
]
Expand All @@ -22,4 +22,4 @@ requires = [
"hatchling",
"numpy"
]
build-backend = "hatchling.build"
build-backend = "hatchling.build"
4 changes: 2 additions & 2 deletions src/cupybara.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from cupybara_jbrhm.cupybara_paths import CupybaraPaths
from cupybara.cupybara_paths import CupybaraPaths

lib = CDLL(CupybaraPaths.cupybara_libs)

Expand Down Expand Up @@ -65,4 +65,4 @@ def sync(self):
# Overloaded Matrix Multiplication
@staticmethod
def multiply(A, B, C):
lib.multiply(A.matrix, B.matrix, C.matrix)
lib.multiply(A.matrix, B.matrix, C.matrix)
6 changes: 3 additions & 3 deletions testing/pytorch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tell Python interpreter where cupybara is for testing
import sys
#sys.path.insert(0, '/home/john/Desktop/PersonalProjects/CudaLibrary/package/cupybara_jbrhm')
from cupybara_jbrhm.cupybara import Matrix
from cupybara.cupybara import Matrix

# Regular imports
import torch
Expand All @@ -16,7 +16,7 @@ class Backends(Enum):
cupybara = 1
torch = 2

backend = Backends.torch
backend = Backends.cupybara

begin = time.time()

Expand Down Expand Up @@ -46,4 +46,4 @@ class Backends(Enum):

GFLOPS = ((2 * SIZE * SIZE * SIZE) / (end - begin)) * 1e-9;

print(f"Pytorch had {GFLOPS} GFLOPS")
print(f"{GFLOPS} GFLOPS")

0 comments on commit 183551a

Please sign in to comment.