! /bin/bin/bash

../tools/clean_build.sh

# Should be enabled for H3C only
#set_env add CMAKE_PREFIX_PATH /hpc/software/intel/oneapi/mkl/2023.1.0
#set_env add CMAKE_MODULE_PATH /hpc/software/intel/oneapi/mkl/2023.1.0/lib/cmake/mkl

# Add -DMKL_THREADING=intel_thread to enforce OpenMP threading if needed.

cmake .. \
-G "Unix Makefiles" \
-DPython_EXECUTABLE="python" \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=off \
-DBUILD_EXAMPLES=off\
-DBUILD_TESTS=off \
-DBUILD_PYTHON_INTERFACE=on \
-DWITH_OPENMP=on \
-DWITH_MPI=off \
-DWITH_CUDA=on \
-DWITH_FEAST=off \
-DWITH_HDF5=off \
-DEIGEN_BACKEND=default \
-DDIAG_BACKEND=default \
-DTBPM_BACKEND=default