Commit d5b578a9 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

update to build on Summit

parent 2ee92518
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,3 +18,6 @@ bin*
*#
*.swp
.idea


.nfs*
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -4,10 +4,10 @@
#
# CMake build script for DCA++

cmake_minimum_required(VERSION 3.21)
cmake_minimum_required(VERSION 3.20)
project(DCA++ LANGUAGES C CXX)

cmake_policy(VERSION 3.21)
cmake_policy(VERSION 3.20)

################################################################################
# Always use <PackageName>_ROOT vars to search first
+1 −4
Original line number Diff line number Diff line
@@ -71,12 +71,10 @@ int main(int argc, char** argv) {
  DcaDataType dca_data(parameters);
  dca_data.initialize();

#ifdef DCA_HAVE_ADIOS2
  adios2::ADIOS adios;

  int rank = concurrency.id();
  std::cout << "\nProcessor " << concurrency.id() << " is writing data." << std::endl;
  dca::io::Writer writer(adios, concurrency, "ADIOS2", true);
  dca::io::Writer writer(concurrency, "HDF5", true);
  std::string filename_bse(parameters.get_directory() + parameters.getAppropriateFilenameAnalysis());
  writer.open_file(filename_bse);

@@ -120,7 +118,6 @@ int main(int argc, char** argv) {
    parameters.write(writer);
  writer.end_step();
  writer.close_file();
#endif
  std::cout << "\nFinish time: " << dca::util::print_time() << "\n" << std::endl;
  return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
#

# Check compiler version
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)
  message(FATAL_ERROR "Requires gcc 9.0 or higher ")
endif()

+6 −2
Original line number Diff line number Diff line
FROM code.ornl.gov:4567/olcfcontainers/olcfbaseimages/mpiimage-centos-cuda


RUN fakeroot dnf install -y \
      dos2unix \
      rsync \
@@ -17,12 +18,13 @@ ENV ADIOS2_DIR=/opt/adios2
RUN mkdir -p $ADIOS2_DIR

COPY dockerfiles/install_adios2.sh /install_adios2.sh
RUN bash /install_adios2.sh
RUN bash /install_adios2.sh -DCMAKE_CUDA_ARCHITECTURES=70

COPY . /DCA
RUN mkdir /DCA/build && cd  /DCA/build  \
 && cmake \
    -DCMAKE_PREFIX_PATH=/usr/local/magma \
    -DCMAKE_CUDA_ARCHITECTURES=70 \
    -DCMAKE_BUILD_TYPE=Release \
    -DDCA_WITH_CUDA=on \
    -DDCA_WITH_ADIOS2=on  \
@@ -32,3 +34,5 @@ RUN mkdir /DCA/build && cd /DCA/build \

RUN mkdir /dca && mv /DCA/build/applications/analysis/chi_q_omega /dca/chi_q_omega \
 && mv /DCA/build/applications/dca/main_dca /dca/main_dca

RUN echo hello
 No newline at end of file
Loading