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
825b8dfa
Unverified
Commit
825b8dfa
authored
Mar 07, 2018
by
Alex Rothberg
Committed by
GitHub
Mar 07, 2018
Browse files
library_builders for fftw
parent
cba6a422
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
library_builders.sh
library_builders.sh
+52
-0
No files found.
library_builders.sh
View file @
825b8dfa
...
...
@@ -39,6 +39,7 @@ LIBTOOL_VERSION=${LIBTOOL_VERSION:-2.4.6}
RAGEL_VERSION
=
${
RAGEL_VERSION
:-
6
.10
}
FLEX_VERSION
=
${
FLEX_VERSION
:-
2
.6.4
}
BISON_VERSION
=
${
BISON_VERSION
:-
3
.0.4
}
FFTW_VERSION
=
${
FFTW_VERSION
:-
3
.3.7
}
OPENSSL_ROOT
=
openssl-1.0.2l
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
OPENSSL_HASH
=
ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
...
...
@@ -381,3 +382,54 @@ function build_flex {
build_simple flex
$FLEX_VERSION
\
https://github.com/westes/flex/releases/download/v
$FLEX_VERSION
}
function
build_fftw
{
echo
'Building fftw'
# Taken from: https://github.com/conda-forge/fftw-feedstock/blob/master/recipe/build.sh
export
CFLAGS
=
"-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math"
# TODO: make this a loop:
# single
echo
'Building fftw: single'
build_simple fftw
$FFTW_VERSION
\
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
rm
fftw-stamp
# double
echo
'Building fftw: double'
build_simple fftw
$FFTW_VERSION
\
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
rm
fftw-stamp
# long double (SSE2 and AVX not supported)
echo
'Building fftw: long double'
build_simple fftw
$FFTW_VERSION
\
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
export
C_INCLUDE_PATH
=
$BUILD_PREFIX
/include
# required as fftw3.h installed here
# define STATIC_FFTW_DIR so the patched setup.py will statically link FFTW
export
STATIC_FFTW_DIR
=
$BUILD_PREFIX
/lib
# TODO: These can be made into asserts per:
# https://github.com/conda-forge/fftw-feedstock/blob/8eaa8a1c63e7fcb97c63c1ee8e33c62ef3afa9c7/recipe/meta.yaml#L29-L52
ls
-l
$C_INCLUDE_PATH
/fftw3
*
ls
-l
$STATIC_FFTW_DIR
/libfftw3
*
# Clear CFLAGS from fftw build
export
CFLAGS
=
""
}
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