Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 614b29d

Browse files
Implemented CRubix::median
1 parent 40e0930 commit 614b29d

File tree

6 files changed

+317
-116
lines changed

6 files changed

+317
-116
lines changed

README.MD

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# PHPSci CArray Extension
22

3-
<p align="center">
4-
<img src="https://i.imgur.com/QoIbhqj.png" width="70%" />
5-
</p>
3+
![](https://i.imgur.com/QoIbhqj.png)
64

75
PHPSci CArray is a high-performance scientific computing library for PHP developed in C and based on the original NumPy code. CArrays offer a solid alternative to PHP arrays as well as compatibility with codes developed using NumPy.
86

@@ -11,22 +9,24 @@ PHPSci CArray is a high-performance scientific computing library for PHP develop
119
- Efficient shape, initializers, linear algebra and mathematical methods.
1210
- Out of the box GPU integration (Cuda)
1311

14-
---
12+
--------------------------------------------------------------------------------
1513

1614
## Installing
1715

1816
It's really easy to compile this extension using Linux environments.
1917

20-
#### Requirements
18+
### Requirements
2119

2220
- php-devel (php-dev)
2321
- PHP 7.2
2422
- OpenBLAS
2523

26-
#### Optional
24+
### Optional
25+
2726
- cuBLAS (For GPU Integration)
2827

29-
#### Ubuntu 16.04
28+
### Ubuntu 16.04
29+
3030
```commandline
3131
$ add-apt-repository -y ppa:ondrej/php
3232
$ apt-get update
@@ -36,7 +36,9 @@ $ ./configure
3636
$ make test
3737
$ make install
3838
```
39-
#### Ubuntu 14.04
39+
40+
### Ubuntu 14.04
41+
4042
```commandline
4143
$ add-apt-repository -y ppa:ondrej/php
4244
$ apt-get update

kernel/gpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ start_clblas_context() {
1717

1818
/* Setup OpenCL environment. */
1919
err = clGetPlatformIDs( 1, &platform, NULL );
20-
err = clGetDeviceIDs( platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL );
20+
err = clGetDeviceIDs( platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL );
2121

2222
props[1] = (cl_context_properties)platform;
2323

0 commit comments

Comments
 (0)