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
39401037
Commit
39401037
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add a new gitlab CI job to generate an OpenBLAS-OpenMP enabled pyfaust whl release package.
parent
50683f58
No related branches found
No related tags found
No related merge requests found
Pipeline
#834018
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+11
-3
11 additions, 3 deletions
.gitlab-ci.yml
CMake/embed_sys_openblaso_into_pyfaust.txt
+4
-2
4 additions, 2 deletions
CMake/embed_sys_openblaso_into_pyfaust.txt
with
15 additions
and
5 deletions
.gitlab-ci.yml
+
11
−
3
View file @
39401037
...
...
@@ -8,6 +8,7 @@ variables:
WIN_PY_VER
:
'
3.9'
# default python version used to build python wrapper on windows (for both whl package and nsis .exe)
NIX_PY_VER
:
'
3.9'
# default python version used to build python wrapper for "unix" system packages (pkg/macos, rpm/deb/linux)
GEN_EGG
:
'
OFF'
USE_OPENBLASO
:
'
OFF'
# by default any pip whl pkg doesn't use openblas-openmp (eigen blas backend)
.ctest_template
:
&ctest_script
script
:
...
...
@@ -366,7 +367,7 @@ pkg_linux_release_static:
-
job
:
pkg_linux_purepy_release
artifacts
:
true
pages
:
.
pages
:
stage
:
gitlab_pages
script
:
-
if [[ ! -d 'build' ]]; then mkdir build;fi; cd build
...
...
@@ -405,7 +406,7 @@ pages:
script
:
-
if [[ ! -d 'build' ]]; then mkdir build;fi; cd build
-
cmake -DCMAKE_CXX_COMPILER=$CMAKE_CXX_COMPILER ..
-
'
cmake
-DBUILD_WRAPPER_PYTHON=ON
-DBUILD_WRAPPER_MATLAB=OFF
-DBUILD_DOCUMENTATION=ON
-DCPACK_PACKAGE_VERSION=$VERSION
-DCMAKE_INSTALL_PREFIX=/opt/local/faust-$SHA_START
-DBUILD_TESTING=OFF
-DEXCLUDE_FAUST_LIB_INSTALL=ON
-DUSE_MATIO_STATIC_LIBS=ON
-DMATIO_STATIC_LIB_PATH=$MATIO_STATIC_LIB_PATH
-DZ_STATIC_LIB_PATH=$Z_STATIC_LIB_PATH
-DHDF5_STATIC_LIB_PATH=$HDF5_STATIC_LIB_PATH
-DREMOTE_DATA_URL="$DURL"
-DREMOTE_DATA_FILE="$DFILE"
-DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG
-DFAUST_TORCH=$FAUST_TORCH
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH"
-DNOPY2=$NOPY2
-DBUILD_MULTITHREAD=$BUILD_MULTITHREAD
-DUSE_GPU_MOD=$USE_GPU_MOD
-DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG
-DFAUST_TORCH=$FAUST_TORCH
-DBUILD_FLOAT_PYX=ON
..'
-
'
cmake
-DBUILD_WRAPPER_PYTHON=ON
-DBUILD_WRAPPER_MATLAB=OFF
-DBUILD_DOCUMENTATION=ON
-DCPACK_PACKAGE_VERSION=$VERSION
-DCMAKE_INSTALL_PREFIX=/opt/local/faust-$SHA_START
-DBUILD_TESTING=OFF
-DEXCLUDE_FAUST_LIB_INSTALL=ON
-DUSE_MATIO_STATIC_LIBS=ON
-DMATIO_STATIC_LIB_PATH=$MATIO_STATIC_LIB_PATH
-DZ_STATIC_LIB_PATH=$Z_STATIC_LIB_PATH
-DHDF5_STATIC_LIB_PATH=$HDF5_STATIC_LIB_PATH
-DREMOTE_DATA_URL="$DURL"
-DREMOTE_DATA_FILE="$DFILE"
-DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG
-DFAUST_TORCH=$FAUST_TORCH
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH"
-DNOPY2=$NOPY2
-DBUILD_MULTITHREAD=$BUILD_MULTITHREAD
-DUSE_GPU_MOD=$USE_GPU_MOD
-DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG
-DFAUST_TORCH=$FAUST_TORCH
-DBUILD_FLOAT_PYX=ON
-DUSE_OPENBLASO="$USE_OPENBLASO"
..'
-
make
-
cd wrapper/python
-
$JOB_PYTHON setup.py bdist_wheel
...
...
@@ -534,6 +535,13 @@ pkg_linux_purepy_release_torch_linked:
tags
:
-
torch
pkg_linux_purepy_release_openblaso
:
extends
:
.pkg_purepy_release
variables
:
{
GIT_SUBMODULE_STRATEGY
:
recursive
,
MATIO_STATIC_LIB_PATH
:
"
/opt/local/matio-1.5.7/src/.libs/libmatio.a"
,
Z_STATIC_LIB_PATH
:
"
/opt/local/zlib-1.2.11/libz.a"
,
HDF5_STATIC_LIB_PATH
:
"
/opt/local/hdf5-1.8.18/src/.libs/libhdf5.a"
,
BUILD_MULTITHREAD
:
"
ON"
,
NOPY2
:
"
ON"
,
USE_GPU_MOD
:
"
ON"
,
CMAKE_PREFIX_PATH
:
"
../gpu_mod"
,
FAUST_TORCH
:
"
OFF"
,
EXPERIMENTAL_PKG
:
"
OFF"
,
CMAKE_CXX_COMPILER
:
"
clang++"
,
USE_OPENBLASO
:
"
ON"
}
tags
:
-
linux
-
tux_packager
.pkg_purepy_release_rasp
:
stage
:
pkg
variables
:
{
MATIO_STATIC_LIB_PATH
:
"
/opt/local/libmatio.a"
,
Z_STATIC_LIB_PATH
:
"
/opt/local/libz.a"
,
HDF5_STATIC_LIB_PATH
:
"
/opt/local/libhdf5.a"
}
...
...
@@ -783,7 +791,7 @@ test_win_purepy_pkg_extra_pyver:
-
job
:
pkg_win_purepy_release_extra_pyver
artifacts
:
true
pypi_pub
:
.
pypi_pub
:
stage
:
pkg_pub
script
:
-
python3 -m pip install --user twine
...
...
This diff is collapsed.
Click to expand it.
CMake/embed_sys_openblaso_into_pyfaust.txt
+
4
−
2
View file @
39401037
...
...
@@ -20,10 +20,12 @@ foreach(LIB IN LISTS LIBS)
string(REGEX MATCH ".*libopenblaso.*" RES ${LIB})
string(LENGTH "${RES}" RES_LEN)
get_filename_component(LIB_FILE ${LIB} NAME)
# remove digit suffix in library name (to ease loading with an easier to determine library filename)
string(REGEX REPLACE "\\.[0-9]+.*$" "" LIB_FILE2 ${LIB_FILE})
if(${RES_LEN} GREATER 0)
message(STATUS "system libopenblaso: ${LIB}")
# copy the libopenblaso in pyfaust/lib
message("copying libopenblaso to wrapper/python/pyfaust/lib/${LIB_FILE}")
configure_file(${LIB} pyfaust/lib/${LIB_FILE} COPYONLY)
message("copying libopenblaso to wrapper/python/pyfaust/lib/${LIB_FILE
2
}")
configure_file(${LIB} pyfaust/lib/${LIB_FILE
2
} COPYONLY)
endif()
endforeach()
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