代码拉取完成,页面将自动刷新
同步操作将从 jmaxime/HiFiLES 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#####################################################
# \file configure_run.sh
# \brief Configuration script for HiFiLES
# \author - Original code: SD++ developed by Patrice Castonguay, Antony Jameson,
# Peter Vincent, David Williams (alphabetical by surname).
# - Current development: Aerospace Computing Laboratory (ACL)
# Aero/Astro Department. Stanford University.
# \version 0.1.0
#
# High Fidelity Large Eddy Simulation (HiFiLES) Code.
# Copyright (C) 2014 Aerospace Computing Laboratory (ACL).
#
# HiFiLES is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# HiFiLES is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with HiFiLES. If not, see <http://www.gnu.org/licenses/>.
#####################################################
# Standard (Helpful) Settings [Should not need to change these]
export HIFILES_HOME=$(pwd)
# ---------------------------------------------------------------
# Basic User-Modifiable Build Settings [Change these as desired]
NODE="CPU" # CPU or GPU
CODE="RELEASE" # DEBUG or RELEASE
BLAS="ATLAS" # ATLAS, STANDARD, ACCLERATE, or NO
PARALLEL="YES" # YES or NO
TECIO="NO" # YES or NO
METIS="NO" # Build & link to the HiFiLES-supplied ParMETIS libraries? YES or NO
# ---------------------------------------------------------------
# Compiler Selections [Change compilers or add full filepaths if needed]
CXX="g++" # C++ compiler - Typically g++ (default, GNU) or icpc (Intel)
NVCC="nvcc" # NVidia CUDA compiler
MPICC="mpicxx" # MPI C compiler
# ---------------------------------------------------------------
# Library & Header File Locations [Change filepaths as needed]
#BLAS_LIB="/usr/local/atlas/lib"
BLAS_LIB="/usr/lib"
BLAS_INCLUDE="/usr/include"
TECIO_LIB="lib/tecio-2008/lib"
TECIO_INCLUDE="lib/tecio-2008/include"
# If building the supplied ParMETIS libraries, need the MPI header location
#MPI_INCLUDE="/usr/include/mpich2" # location of mpi.h
MPI_INCLUDE="/usr/lib/openmpi/include" # location of mpi.h
# If NOT building the supplied ParMetis library, location of installed libraries
PARMETIS_LIB="/usr/lib" # location of libparmetis.a
PARMETIS_INCLUDE="/usr/include" # location of parmetis.h
METIS_LIB="/usr/lib" # location of libmetis.a
METIS_INCLUDE="/usr/include" # location of metis.h
# GPU Architechture Selection: -gencode=arch=compute_xx,code=sm_xx (default: 20)
# compute_10 Basic features
# compute_11 + atomic memory operations on global memory
# compute_12 + atomic memory operations on shared memory
# + vote instructions
# compute_13 + double precision floating point support
# compute_20 + Fermi support
# compute_30 + Kepler support
CUDA_ARCH="20"
CUDA_LIB="/usr/local/cuda/lib64"
CUDA_INCLUDE="/usr/local/cuda/include"
#--prefix=/home/maxime/cfd/pkg/HiFiLES/HiFiLES-solver
# ---------------------------------------------------------------
# Run configure using the chosen options [Should not change this]
if [[ "$NODE" == "GPU" ]]
then
_GPU=$NVCC
else
_GPU="NO"
fi
if [[ "$PARALLEL" == "YES" ]]
then
_MPI=$MPICC
else
_MPI="NO"
PARMETIS_LIB="NO"
PARMETIS_INCLUDE="NO"
fi
if [[ "$TECIO" == "NO" ]]
then
TECIO_LIB="NO"
TECIO_INCLUDE="NO"
fi
./configure --prefix=$HIFILES_RUN/.. \
--with-CXX=$CXX \
--with-BLAS=$BLAS \
--with-BLAS-lib=$BLAS_LIB \
--with-BLAS-include=$BLAS_INCLUDE \
--with-MPI=$_MPI \
--with-MPI-include=$MPI_INCLUDE \
--with-CUDA=$_GPU \
--with-CUDA-lib=$CUDA_LIB \
--with-CUDA-include=$CUDA_INCLUDE \
--with-CUDA-arch=$CUDA_ARCH \
--with-ParMetis-lib=$PARMETIS_LIB \
--with-ParMetis-include=$PARMETIS_INCLUDE \
--with-Metis-lib=$METIS_LIB \
--with-Metis-include=$METIS_INCLUDE \
--with-Tecio-lib=$TECIO_LIB \
--with-Tecio-include=$TECIO_INCLUDE \
--enable-metis=$METIS \
--enable-release=$CODE
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。