Skip to content

Commit

Permalink
Reorganized into cuda folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mashrurmorshed committed Aug 28, 2020
1 parent b1ae675 commit 169e286
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.vscode
/.vscode
**/__pycache__/**
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CUDA Testbed
# Numba Testbed

Simple CUDA acceleration tests and samples.
My collection of numba acceleration tests.
4 changes: 1 addition & 3 deletions samples/vector_add.py → cuda/vector_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def main(args):
B = np.ones( N, dtype = np.float32)
C = np.empty(N, dtype = np.float32)

# Interestingly, the function is actually compiled the first time it is used.
# Calling Add() early removes the compilation overhead from the actual Add() operation.

# initial compilation
if args.e:
Add(np.float32(0), np.float32(0))

Expand Down

0 comments on commit 169e286

Please sign in to comment.