Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarpX Blosc2 operator error #132

Closed
anagainaru opened this issue Mar 10, 2023 · 1 comment
Closed

WarpX Blosc2 operator error #132

anagainaru opened this issue Mar 10, 2023 · 1 comment

Comments

@anagainaru
Copy link
Owner

#!/bin/bash                                                                                                                              

rm -rf c-blosc2 ADIOS2 adios2-build openPMD-api openPMD-api-build blaspp blaspp-summit-build lapackpp lapackpp-summit-build WarpX
ls

module load gcc/9.3.0
module load cuda/11.4.2
module load cmake
module load python/3.8-anaconda3
module load openblas/0.3.5-omp
export BLAS=${OLCF_OPENBLAS_ROOT}/lib/libopenblas.so
export LAPACK=${OLCF_OPENBLAS_ROOT}/lib/libopenblas.so
export CC=$(which gcc)
export FC=$(which gfortran)
export CXX=$(which g++)
export CUDACXX=$(which nvcc)
export CUDAHOSTCXX=$(which g++)
export CXXFLAGS="-std=c++11"

# Blosc2                                                                                                                                 
cd /ccs/proj/csc303/ldulacgit clone https://github.com/Blosc/c-blosc2cd c-blosc2
mkdir build
cd build
cmake ../
cmake --build . -j 8
cmake --install . --prefix $(pwd)/install

# ADIOS2                                                                                                                                 
cd /ccs/proj/csc303/ldulacgit clone -b release_29 https://github.com/ornladios/ADIOS2
cd ADIOS2
mkdir adios2-build
cd adios2-build
cmake -DADIOS2_USE_BLOSC2=ON -DADIOS2_USE_MPI=ON -DBLOSC2_LIBRARY=/ccs/proj/csc303/ldulac/c-blosc2/build/blosc/libblosc2.so -DBLOSC2_INC\LUDE_DIR=/ccs/proj/csc303/ldulac/c-blosc2/build/install/include -DADIOS2_USE_HDF5=OFF -DCMAKE_INSTALL_PREFIX=../install ../
make -j 8
cmake --install . --prefix $(pwd)/installexport ADIOS2_DIR=/ccs/proj/csc303/ldulac/ADIOS2/adios2-build/install

export LD_LIBRARY_PATH=${ADIOS2_DIR}/lib64/:${LD_LIBRARY_PATH}

# OpenPMD                                                                                                                                
git clone https://github.com/openPMD/openPMD-api
mkdir openPMD-api-build
cd openPMD-api-build/
cmake -DopenPMD_USE_HDF5=false -DCMAKE_INSTALL_PREFIX=../install ../openPMD-api/
make -j 8
cmake --install . --prefix $(pwd)/installexport PKG_CONFIG_PATH=$PWD/install/lib/pkgconfig:$PKG_CONFIG_PATH

# BLAS++ (for PSATD+RZ)                                                                                                                  
cd /ccs/proj/csc303/ldulacgit clone https://github.com/icl-utk-edu/blaspp.git
rm -rf blaspp-summit-build
cmake -S blaspp -B blaspp-summit-build -Duse_openmp=OFF -Dgpu_backend=cuda -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/ccs/proj/csc3\03/ldulac/blaspp-summit-build/installcmake --build blaspp-summit-build --target install --parallel 10
export blaspp_DIR=/ccs/proj/csc303/ldulac/blaspp-summit-build

# LAPACK++ (for PSATD+RZ)                                                                                                                
cd /ccs/proj/csc303/ldulacgit clone https://github.com/icl-utk-edu/lapackpp.gitrm -rf lapackpp-summit-buildcmake -S lapackpp -B lapackpp-summit-build -DCMAKE_CXX_STANDARD=17 -Dbuild_tests=OFF -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INST\ALL_PREFIX=/ccs/proj/csc303/ldulac/lapackpp-summit-build/install
cmake --build lapackpp-summit-build --target install --parallel 10

export lapackpp_DIR=/ccs/proj/csc303/ldulac/lapackpp-summit-build/

# WarpX                                                                                                                                  
cd /ccs/proj/csc303/ldulacgit clone https://github.com/ECP-WarpX/WarpX.git
cd WarpX
mkdir build
cmake -S . -B build -DWarpX_COMPUTE=CUDA -DWarpX_PSATD=ON -DWarpX_LIB=ON -DWarpX_DIMS=RZ
cmake --build build -j 6
@anagainaru
Copy link
Owner Author

Fixed in ornladios/ADIOS2#3542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant