Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Oct 8, 2024
1 parent 8623b37 commit a62a0f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@ endforeach ()

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
file(READ "/etc/os-release" DISTRO_INFO)
string(REGEX MATCH "fedora|ubuntu" DIST ${DISTRO_INFO})
string(REGEX MATCH "fedora|ubuntu|Debian" DIST ${DISTRO_INFO})

if (DIST OR BUILD_PACKAGE)
if ((DIST STREQUAL "ubuntu") OR (BUILD_PACKAGE MATCHES "DEB"))
if ((DIST STREQUAL "ubuntu") OR (DIST STREQUAL "Debian") OR (BUILD_PACKAGE MATCHES "DEB"))
message(STATUS "Build DEB Package For Distribution: ${DIST}")
set(CPACK_GENERATOR "DEB")
# set(CPACK_DEBIAN_PACKAGE_DEPENDS "libstdc++6 libglvnd0 libgfortran5 libgomp1")
Expand Down
2 changes: 1 addition & 1 deletion Script/Rocky.CUDA.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM tlcfem/suanpan-env-cuda:latest AS build

RUN git clone -b dev --depth 1 https://github.com/TLCFEM/suanPan.git
RUN cd suanPan && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_VTK=ON -DUSE_MKL=ON -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DUSE_INTEL_OPENMP=OFF -DLINK_DYNAMIC_MKL=OFF -DCMAKE_INSTALL_PREFIX=suanPan-linux-mkl-vtk -DBUILD_PACKAGE=RPM ..
RUN cd suanPan && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_AVX2=OFF -DUSE_VTK=ON -DUSE_MKL=ON -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DUSE_INTEL_OPENMP=OFF -DLINK_DYNAMIC_MKL=OFF -DCMAKE_INSTALL_PREFIX=suanPan-linux-mkl-vtk -DBUILD_PACKAGE=RPM ..
RUN cd suanPan/build && make install -j"$(nproc)" && make package
RUN cd suanPan/build && cp suanPan*.rpm / && \
tar czf /suanPan-linux-mkl-vtk.tar.gz suanPan-linux-mkl-vtk && \
Expand Down
2 changes: 1 addition & 1 deletion Script/Rocky.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM tlcfem/suanpan-env:latest AS build

RUN git clone -b dev --depth 1 https://github.com/TLCFEM/suanPan.git
RUN cd suanPan && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_VTK=ON -DUSE_MKL=ON -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DUSE_INTEL_OPENMP=OFF -DLINK_DYNAMIC_MKL=OFF -DCMAKE_INSTALL_PREFIX=suanPan-linux-mkl-vtk -DBUILD_PACKAGE=RPM ..
RUN cd suanPan && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_VTK=ON -DUSE_AVX2=OFF -DUSE_MKL=ON -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DUSE_INTEL_OPENMP=OFF -DLINK_DYNAMIC_MKL=OFF -DCMAKE_INSTALL_PREFIX=suanPan-linux-mkl-vtk -DBUILD_PACKAGE=RPM ..
RUN cd suanPan/build && make install -j"$(nproc)" && make package
RUN cd suanPan/build && cp suanPan*.rpm / && \
tar czf /suanPan-linux-mkl-vtk.tar.gz suanPan-linux-mkl-vtk && \
Expand Down

0 comments on commit a62a0f7

Please sign in to comment.