Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
5429cca8
Unverified
Commit
5429cca8
authored
Mar 20, 2018
by
Alex Rothberg
Committed by
GitHub
Mar 20, 2018
Browse files
factor out build_fftw_case
parent
825b8dfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
library_builders.sh
library_builders.sh
+13
-16
No files found.
library_builders.sh
View file @
5429cca8
...
@@ -383,41 +383,38 @@ function build_flex {
...
@@ -383,41 +383,38 @@ function build_flex {
https://github.com/westes/flex/releases/download/v
$FLEX_VERSION
https://github.com/westes/flex/releases/download/v
$FLEX_VERSION
}
}
function
build_fftw_case
{
local
configure_args
=
${
@
:0
}
build_simple fftw
$FFTW_VERSION
\
http://www.fftw.org/ tar.gz
\
--with-pic
--enable-shared
--enable-threads
--disable-fortran
\
$configure_args
# eval cd fftw-$FFTW_VERSION/tests && make check-local && cd -
}
function
build_fftw
{
function
build_fftw
{
echo
'Building fftw'
echo
'Building fftw'
# Taken from: https://github.com/conda-forge/fftw-feedstock/blob/master/recipe/build.sh
# Taken from: https://github.com/conda-forge/fftw-feedstock/blob/master/recipe/build.sh
export
CFLAGS
=
"-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
export
CFLAGS
=
"-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
# TODO: make this a loop:
# single
# single
echo
'Building fftw: single'
echo
'Building fftw: single'
build_simple fftw
$FFTW_VERSION
\
build_fftw_case
--enable-float
--enable-sse
--enable-sse2
--enable-avx
http://www.fftw.org/ tar.gz
\
--with-pic
--enable-shared
--enable-threads
--disable-fortran
\
--enable-float
--enable-sse
--enable-sse2
--enable-avx
# eval cd tests && make check-local && cd -
# Clear stamp file which prevents subsequent builds
# Clear stamp file which prevents subsequent builds
rm
fftw-stamp
rm
fftw-stamp
# double
# double
echo
'Building fftw: double'
echo
'Building fftw: double'
build_simple fftw
$FFTW_VERSION
\
build_fftw_case
--enable-sse2
--enable-avx
http://www.fftw.org/ tar.gz
\
--with-pic
--enable-shared
--enable-threads
--disable-fortran
\
--enable-sse2
--enable-avx
# eval cd tests && make check-local && cd -
# Clear stamp file which prevents subsequent builds
# Clear stamp file which prevents subsequent builds
rm
fftw-stamp
rm
fftw-stamp
# long double (SSE2 and AVX not supported)
# long double (SSE2 and AVX not supported)
echo
'Building fftw: long double'
echo
'Building fftw: long double'
build_simple fftw
$FFTW_VERSION
\
build_fftw_case
--enable-long-double
http://www.fftw.org/ tar.gz
\
--with-pic
--enable-shared
--enable-threads
--disable-fortran
\
--enable-long-double
# eval cd tests && make check-local && cd -
# Taken from: https://github.com/conda-forge/pyfftw-feedstock/blob/master/recipe/build.sh
# Taken from: https://github.com/conda-forge/pyfftw-feedstock/blob/master/recipe/build.sh
export
C_INCLUDE_PATH
=
$BUILD_PREFIX
/include
# required as fftw3.h installed here
export
C_INCLUDE_PATH
=
$BUILD_PREFIX
/include
# required as fftw3.h installed here
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment