Skip to content

Commit 73accb8

Browse files
committed
Change aff3ct to streampu in python files.
1 parent a2dffe9 commit 73accb8

Some content is hidden

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

53 files changed

+947
-410
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ build:
3434
- docker
3535

3636
artifacts:
37-
name: aff3ct
37+
name: streampu
3838
paths:
39-
- aff3ct
39+
- streampu
4040
- venv
4141

4242
script:
@@ -57,8 +57,8 @@ tests:
5757

5858
script:
5959
- cd ..
60-
- pip3 show -f aff3ct
61-
- pytest --pyargs aff3ct --junitxml=./pyaf-core/report.xml
60+
- pip3 show -f streampu
61+
- pytest --pyargs streampu --junitxml=./pyaf-core/report.xml
6262

6363
artifacts:
6464
when: always

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include README.md LICENSE lib/pybind11/LICENSE lib/aff3ct-core/LICENSE
1+
include README.md LICENSE lib/pybind11/LICENSE lib/streampu/LICENSE
22
graft lib
33
graft include
44
graft src

README.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,38 @@
1-
# pyaf-core
1+
# pyStreamPU
22

33
## Getting started
44
### Install from the sources
55
Clone the repository
66
```
7-
git clone --recursive [email protected]:fec/pyaf-core.git
7+
git clone --recursive [email protected]:fec/pystreampu.git
88
```
9-
then install `pyaf-core` using `pip3`
9+
then install the python interface of `StreamPU` using `pip3`
1010
```
11-
pip3 install ./pyaf-core
11+
pip3 install ./pystreampu
1212
```
1313
If you want more information during compilation, use `-v` option of the `pip3` command.
1414

15-
### Install with debug mode
16-
To build using `debug` configuration, set an environment variable `DEBUG=1` prior to install the library.
17-
18-
For example the following command will compile the package `aff3ct` in `Debug` and `editable` mode, and shows the compilation output.
19-
```
20-
DEBUG=1 pip3 install -e pyaf-core -v
21-
```
22-
2315
### Install with fine-tuning of C++ flags
24-
When running the `pip3 install` command, CMake is used with some pre-defined flags, for example by default
16+
To install `streampu`compiled with custom flags, use the following syntax:
2517
```
26-
CMAKE_CXX_FLAGS = -Wall -funroll-loops -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -Wno-overloaded-virtual
18+
pip3 install -v -Ccmake.define.YOUR_CMAKE_FLAG1=CONTENT1 -Ccmake.define.YOUR_CMAKE_FLAG2=CONTENT2 .
2719
```
28-
You can pass your own values using two environment variables.
29-
- Setting the environment variable `CMAKE_CXX_FLAGS = -fsome_options` will append `-fsome_options` to the default flag
30-
- Setting the environment variable `CMAKE_ARGS = -DCMAKE_CXX_FLAGS= -fsome_options` will erase the default behavior and use only your options. Using `CMAKE_ARGS` you can pass any arguments to `cmake`.
20+
where you can replace `YOUR_CMAKE_FLAG1`and `YOUR_CMAKE_FLAG2` by the flags you want
21+
and set `CONTENT1` and `CONTENT2` values.
3122

3223
## Run tests
33-
Testing `aff3ct` requires `pytest`, run the following command:
24+
Testing the `streampu` package requires `pytest`, run the following command:
3425
```
35-
pytest --pyargs aff3ct
26+
pytest --pyargs streampu
3627
```
3728

38-
## A simple `aff3ct` program
29+
## A simple `streampu` program
3930

4031
```python
41-
import aff3ct
32+
import streampu as spu
4233

43-
x = aff3ct.array([1,2,3], dtype = aff3ct.uint8)
44-
y = aff3ct.array([4,5,6], dtype = aff3ct.uint8)
34+
x = spu.array([1,2,3], dtype = spu.uint8)
35+
y = spu.array([4,5,6], dtype = spu.uint8)
4536

4637
z = x+y
4738
print(z)

aff3ct/_delayer.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

aff3ct/_finalizer.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

aff3ct/_incrementer.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

aff3ct/_initializer.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

aff3ct/_relayer.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

aff3ct/_sink.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

aff3ct/_source.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)