Skip to content
Snippets Groups Projects
Commit 720265d7 authored by henedler's avatar henedler
Browse files

Make newest wsclean master (past 3.1 release) work

parent 8cd37fe2
No related branches found
No related tags found
No related merge requests found
...@@ -314,6 +314,7 @@ else ...@@ -314,6 +314,7 @@ else
echo CASAcore already installed. echo CASAcore already installed.
fi >> "$prefix/build.log" 2>&1 || exit 1 fi >> "$prefix/build.log" 2>&1 || exit 1
begin_pkg python-casacore begin_pkg python-casacore
pycasacorelib="$prefix/lib/python$pyver/site-packages" pycasacorelib="$prefix/lib/python$pyver/site-packages"
# ThOr: Subsequent builds might need that, so export it always here. # ThOr: Subsequent builds might need that, so export it always here.
...@@ -390,6 +391,7 @@ if [ ! -e $prefix/.done ]; then ...@@ -390,6 +391,7 @@ if [ ! -e $prefix/.done ]; then
run_cmake \ run_cmake \
-DCMAKE_INSTALL_PREFIX=$prefix \ -DCMAKE_INSTALL_PREFIX=$prefix \
-DCASACORE_ROOT_DIR=$lofar_prefix/casacore \ -DCASACORE_ROOT_DIR=$lofar_prefix/casacore \
-DBoost_INCLUDE_DIR=/home/software/env/cuda-11.1.1_gcc-8.4.0_openmpi-4.0.5/pkgsrc/2022Q1/include \
../src && ../src &&
make -j $J && make -j $J &&
make install && make install &&
...@@ -577,9 +579,9 @@ if [ ! -e $prefix/.done ]; then ...@@ -577,9 +579,9 @@ if [ ! -e $prefix/.done ]; then
-DCASACORE_ROOT_DIR=$lofar_prefix/casacore \ -DCASACORE_ROOT_DIR=$lofar_prefix/casacore \
-DIDGAPI_INCLUDE_DIRS=$lofar_prefix/idg/include \ -DIDGAPI_INCLUDE_DIRS=$lofar_prefix/idg/include \
-DIDGAPI_LIBRARIES=$lofar_prefix/idg/lib/libidg-api.so \ -DIDGAPI_LIBRARIES=$lofar_prefix/idg/lib/libidg-api.so \
-DBLAS_openblas_LIBRARY:FILEPATH=/sw/env/cuda-11.1.1_gcc-8.4.0_openmpi-4.0.5/pkgsrc/2020Q3/lib/libopenblas_pthread.so \
-DEVERYBEAM_INCLUDE_DIR=$lofar_prefix/EveryBeam/include \ -DEVERYBEAM_INCLUDE_DIR=$lofar_prefix/EveryBeam/include \
-DEVERYBEAM_LIB=$lofar_prefix/EveryBeam/lib/libeverybeam.so \ -DEVERYBEAM_LIB=$lofar_prefix/EveryBeam/lib/libeverybeam.so \
-DBLAS_openblas_LIBRARY:FILEPATH=/sw/env/cuda-11.1.1_gcc-8.4.0_openmpi-4.0.5/pkgsrc/2022Q1/lib/libopenblas_pthread.so \
../src && ../src &&
make -j $J && make -j $J &&
make install && make install &&
......
# The setup on the Hamburg LOFAR GPU Cluster. # The setup on the Hamburg LOFAR GPU Cluster.
aoflagger_version=3.2.0 # latest
# 2021 08 07:
#aoflagger_version=latest
#casacore_version=3.3.0
#dysco_version=1.2.0
#pybdsf_version=latest # weird C++ template error with 1.8.12
#pycasa_version=3.1.1
#wsclean_version=latest
#dp3_version=latest
aoflagger_version=latest
casacore_version=3.3.0 casacore_version=3.3.0
dysco_version=1.2.0 dysco_version=1.2.0 # will be part of casacore in newest casacore release
pybdsf_version=latest # weird C++ template error with 1.8.12 pybdsf_version=latest # weird C++ template error with 1.8.12
pycasa_version=3.1.1 pycasa_version=3.1.1
wsclean_version=latest wsclean_version=latest
dp3_version=5.2 dp3_version=latest #5.2
# This gives us CUDA, gcc, Open MPI and dependencies # This gives us CUDA, gcc, Open MPI and dependencies
# from pkgsrc in separate prefixes. # from pkgsrc in separate prefixes.
. /sw/profile/init.sh . /sw/profile/init.sh
module use /sw/TEST module use /sw/TEST
module switch env env/2020Q3-cuda-gcc-openmpi module switch env env/2022Q1-cuda-gcc-openmpi
module load pythonversion/3 module load pythonversion/3
# Note: According to T. Orgis the correct value is -openblas_openmp, definitely _not_ -lcblas! However, it looks like DP3 and wsclean want the _pthread one.
export RRZ_BLAS_LIBS="-lopenblas_pthread" #$RRZ_BLAS_LIBS # from the env/ module export RRZ_BLAS_LIBS="-lopenblas_pthread" #$RRZ_BLAS_LIBS # from the env/ module
export OPENBLAS_NUM_THREADS=1 export OPENBLAS_NUM_THREADS=1
# You could experiment with idg using MKL, but it is recommened # You could experiment with idg using MKL, but it is recommened
# to try a consistent environment where everyone agrees on using # to try a consistent environment where everyone agrees on using
# MKL for BLAS/LAPACK, too. # MKL for BLAS/LAPACK, too.
...@@ -33,7 +26,6 @@ export OPENBLAS_NUM_THREADS=1 ...@@ -33,7 +26,6 @@ export OPENBLAS_NUM_THREADS=1
#idg_mkl=ON #idg_mkl=ON
make_jobs=64 make_jobs=64
export CC=gcc export CC=gcc
export CXX=g++ export CXX=g++
export FC=gfortran export FC=gfortran
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment