Starting fftw module (BROKEN)
This commit is contained in:
45
Compiler/fftw/build
Executable file
45
Compiler/fftw/build
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
|
||||
pbuild::set_download_url "http://www.fftw.org/fftw-$V.tar.gz"
|
||||
pbuild::set_sha256sum "fftw-3.3.8.tar.gz:6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303"
|
||||
|
||||
pbuild::install_docfiles 'COPYRIGHT' 'COPYING' 'README' 'NEWS'
|
||||
|
||||
pbuild::pre_configure() {
|
||||
echo "PRECONFIGURE" >&2
|
||||
pbuild::add_configure_args "CC=${MPICC}"
|
||||
pbuild::add_configure_args "CXX=${MPICXX}"
|
||||
|
||||
# Multithreading. Enabling both is fine
|
||||
pbuild::add_configure_args "--enable-threads"
|
||||
pbuild::add_configure_args "--enable-openmp"
|
||||
|
||||
# MPI support
|
||||
pbuild::add_configure_args "--enable-mpi"
|
||||
|
||||
# CPU optimizations
|
||||
pbuild::add_configure_args "--enable-sse2"
|
||||
pbuild::add_configure_args "--enable-avx2"
|
||||
}
|
||||
|
||||
pbuild::configure() {
|
||||
echo "CONFIGURING" >&2
|
||||
pwd >&2
|
||||
ls >&2
|
||||
./configure
|
||||
}
|
||||
|
||||
pbuild::compile() {
|
||||
echo "COMPILING" >&2
|
||||
echo "PWD=$PWD" >&2
|
||||
echo "ls:" >&2
|
||||
ls >&2
|
||||
echo "make:" >&2
|
||||
make
|
||||
exit 1
|
||||
}
|
||||
|
||||
#pbuild::install() {
|
||||
#}
|
||||
1
Compiler/fftw/files/variants
Normal file
1
Compiler/fftw/files/variants
Normal file
@@ -0,0 +1 @@
|
||||
fftw/3.3.8 unstable gcc/8.2.0 mpich/3.2.1 openmpi/3.1.3
|
||||
12
Compiler/fftw/modulefile
Normal file
12
Compiler/fftw/modulefile
Normal file
@@ -0,0 +1,12 @@
|
||||
#%Module
|
||||
|
||||
module-whatis "Fastest Fourier Transform in the West"
|
||||
module-url "http://www.fftw.org/"
|
||||
module-license "GPL; http://www.fftw.org/doc/License-and-Copyright.html"
|
||||
module-maintainer "Spencer Bliven <spencer.bliven@psi.ch>"
|
||||
|
||||
module-help "
|
||||
FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user