Skip to content

Commit 454abe2

Browse files
Merge pull request #42 from NumPower/fix/stable-deploy
Updates for version 0.4.0
2 parents 076289f + 9e45ee9 commit 454abe2

File tree

88 files changed

+1942
-865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1942
-865
lines changed

CMakeLists.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
cmake_minimum_required(VERSION 3.26)
2+
project(numpower)
3+
4+
set(CMAKE_CXX_STANDARD 14)
5+
6+
include_directories(/usr/local/include/php/main/)
7+
include_directories(/usr/local/include/php)
8+
include_directories(/usr/local/include)
9+
include_directories(/usr/include/)
10+
include_directories(.)
11+
include_directories(src)
12+
include_directories(src/ndmath)
13+
include_directories(src/ndmath/cuda)
14+
15+
add_executable(numpower
16+
src/ndmath/cuda/cuda_math.cu
17+
src/ndmath/cuda/cuda_math.h
18+
src/ndmath/arithmetics.c
19+
src/ndmath/arithmetics.h
20+
src/ndmath/double_math.c
21+
src/ndmath/double_math.h
22+
src/ndmath/linalg.c
23+
src/ndmath/linalg.h
24+
src/ndmath/statistics.c
25+
src/ndmath/statistics.h
26+
src/buffer.c
27+
src/buffer.h
28+
src/debug.c
29+
src/debug.h
30+
src/gd.h
31+
src/gd_io.h
32+
src/gpu_alloc.c
33+
src/gpu_alloc.h
34+
src/indexing.c
35+
src/indexing.h
36+
src/initializers.c
37+
src/initializers.h
38+
src/iterators.c
39+
src/iterators.h
40+
src/logic.c
41+
src/logic.h
42+
src/manipulation.c
43+
src/manipulation.h
44+
src/ndarray.c
45+
src/ndarray.h
46+
src/types.c
47+
src/types.h
48+
config.h
49+
numpower.c
50+
numpower_arginfo.h
51+
php_numpower.h
52+
src/ndmath/signal.c
53+
src/ndmath/signal.h
54+
src/ndmath/calculation.c
55+
)

Makefile.frag

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
################################## nvcc ###################################
42

53
# Location of the CUDA Toolkit
@@ -81,16 +79,12 @@ install-cuda:
8179
$(NVCC) -I. -I $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/double_math.c -shared -Xcompiler -fPIC -o .libs/double_math.o
8280
$(CC) -I. -I $(CXX) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/linalg.c -shared -fPIC -o .libs/linalg.o
8381
$(CC) -I. -I $(CXX) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/signal.c -shared -fPIC -o .libs/signal.o
82+
$(CC) -I. -I $(CXX) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/calculation.c -shared -fPIC -o .libs/calculation.o
8483
$(NVCC) -I. -I $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/gpu_alloc.c -shared -Xcompiler -fPIC -o .libs/gpu_alloc.o
8584
$(NVCC) -I. -I $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/cuda/cuda_math.cu -shared -Xcompiler -fPIC -o .libs/cuda_math.o
8685
$(NVCC) -I. -I $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(ALL_CCFLAGS) $(GENCODE_FLAGS) -c $(builddir)./src/ndmath/statistics.c -shared -Xcompiler -fPIC -o .libs/statistics.o
8786
$(NVCC) -shared .libs/numpower.o .libs/signal.o .libs/initializers.o .libs/double_math.o .libs/ndarray.o .libs/debug.o .libs/statistics.o .libs/buffer.o .libs/logic.o .libs/gpu_alloc.o .libs/linalg.o .libs/manipulation.o .libs/iterators.o .libs/indexing.o .libs/arithmetics.o .libs/types.o .libs/cuda_math.o -lcublas -lcusolver -lcudart -llapack -llapacke -lopenblas -lpthread -lcuda -o .libs/ndarray.so
8887
cp ./.libs/ndarray.so $(phplibdir)/ndarray.so
8988
cp ./.libs/ndarray.so $(EXTENSION_DIR)/ndarray.so
9089

91-
temp:
92-
echo $(COMMON_FLAGS)
93-
echo $(CFLAGS_CLEAN)
94-
echo $(EXTRA_CFLAGS)
95-
echo $(GENCODE_FLAGS)
96-
echo $(INCLUDES)
90+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<img src="https://github.com/NumPower/numpower/assets/1107499/ea2e8895-a1ab-4212-bd91-033e9afa711b" width="200" height="200">
3-
<h1 align="center">NumPower</h1>
43
</p>
4+
<h1 align="center">NumPower</h1>
55
<p align="center">
66
<a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.demolab.com?font=Fira+Code&duration=2000&pause=500&multiline=true&width=435&height=100&separator=%3C&lines=%24a+%3D+nd%3A%3Aarray(%5B%5B1%2C+2%5D%2C+%5B3%2C+4%5D%5D);%3C%24b+%3D+%24a+*+2;%3Cprint_r(%24b);" alt="Typing SVG" /></a>
77
</p>

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ if test "$PHP_NDARRAY" != "no"; then
114114
src/iterators.c \
115115
src/indexing.c \
116116
src/ndmath/arithmetics.c \
117+
src/ndmath/calculation.c \
117118
src/ndmath/statistics.c \
118119
src/ndmath/signal.c \
119120
src/types.c,

0 commit comments

Comments
 (0)