Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
5adaa57e
Commit
5adaa57e
authored
1 year ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Set a docker image (for linux) and doc to ease pyfaust building.
parent
46ab1494
No related branches found
No related tags found
No related merge requests found
Pipeline
#835310
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+35
-0
35 additions, 0 deletions
README.md
docker_linux/Dockerfile
+7
-0
7 additions, 0 deletions
docker_linux/Dockerfile
with
42 additions
and
0 deletions
README.md
+
35
−
0
View file @
5adaa57e
...
...
@@ -71,6 +71,41 @@ Quick Build of the python wrappers (pyfaust) on UNIX (without MATLAB and MATIO)
---
Using Docker for a quick build of the python wrappers (pyfaust) on Linux without any dependency burden
==================================================================================================
First you need to install
[
docker
](
https://docs.docker.com/engine/install/
)
or
``podman-docker``
.
Then follow the next commands:
git clone https://gitlab.inria.fr/faustgrp/faust.git faust
cd faust/docker_linux
# build the docker image, naming it faust_fedora
docker build -t faust_fedora .
# run a terminal in the docker container you just built
docker run -v $PWD/../../faust:/faust:z -it faust_fedora bash
# the :z in the mapping exp. is only needed if your system is selinux enabled
Then in the bash terminal launched above in the docker container, type the following commands to build and test pyfaust (with its wrappers).
[root@faust_fedora]# mkdir build_docker && cd build_docker
[root@faust_fedora]# cmake -DBUILD_WRAPPER_PYTHON=ON -DMATIO_INC_DIR=/usr/include -DMATIO_LIB_FILE=/usr/lib64/libmatio.so ..
[root@faust_fedora]# make faust_python
[root@faust_fedora]# cd wrapper/python/
[root@faust_fedora]# python3 -c "import pyfaust as pf; print(pf.rand(10,10))"
Faust size 10x10, density 2.5, nnz_sum 250, 5 factor(s):
-
FACTOR 0 (double) SPARSE, size 10x10, density 0.5, nnz 50
-
FACTOR 1 (double) SPARSE, size 10x10, density 0.5, nnz 50
-
FACTOR 2 (double) SPARSE, size 10x10, density 0.5, nnz 50
-
FACTOR 3 (double) SPARSE, size 10x10, density 0.5, nnz 50
-
FACTOR 4 (double) SPARSE, size 10x10, density 0.5, nnz 50
Now you can modify the C++ code of FAµST in
``src``
or the python wrappers in
``wrapper/python``
.
Thanks to the docker directory mapping you can do it outside of the docker container
in your own environment and easily build pyfaust again from the container as explained above.
---
Quickest Install on Linux, Windows and macOS (pre-built pakages)
============================================
...
...
This diff is collapsed.
Click to expand it.
docker_linux/Dockerfile
0 → 100644
+
7
−
0
View file @
5adaa57e
FROM
fedora:37
WORKDIR
faust
RUN
dnf
-y
install
python3 python3-devel python3-numpy python3-scipy matio matio-devel
RUN
dnf
-y
install
clang
RUN
dnf
-y
install
cmake
RUN
dnf
-y
install
eigen3
RUN
dnf
-y
install
Cython
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment