Skip to content

Commit

Permalink
Update headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrhm committed Jul 17, 2024
1 parent c419f86 commit 785c44b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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)
4 changes: 2 additions & 2 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 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"Pytorch had {GFLOPS} GFLOPS")

0 comments on commit 785c44b

Please sign in to comment.