Coder Social home page Coder Social logo

geekpiehpc / cyclecloud-star-ccmplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hirtanak/cyclecloud-star-ccmplus

0.0 1.0 0.0 104 KB

Azure CycleCloud template for Siemens STAR-CCMplus

License: MIT License

Ruby 12.64% Python 81.72% Shell 5.49% HTML 0.15%

cyclecloud-star-ccmplus's Introduction

Azure CycleCloud template for Siemens STAR-CCM+

Prerequisites

  1. Prepaire for your STAR-CCM+ bilnary.
  2. Install CycleCloud CLI

How to install

  1. tar zxvf cyclecloud-Particleworks.zip
  2. cd cyclecloud-Particleworks
  3. put your Particleworks binanry /blob directory.
  4. Rewrite "Files" attribute for your binariy in "project.ini" file.
  5. run "cyclecloud project upload azure-storage" for uploading template to CycleCloud
  6. "cyclecloud import_template -f templates/pbs_extended_nfs_pw.txt" for register this template to your CycleCloud

How to run Siemens STAR-CCM+

  1. Create Execute Node manually
  2. Check Node IP Address
  3. Create hosts file for your nodes
  4. qsub ~/starccmrun.sh (sample as below)

#!/bin/bash
#PBS -j oe
#PBS -l select=2:ncpus=44
PPN=44
NP=88

cd ${PBS_O_WORKDIR}

source /etc/profile.d/starccm.sh

INSTALL_DIR="/shared/home/azureuser/apps"
I_MPI_ROOT=/opt/intel/impi/2018.4.274
source /opt/intel/impi/2018.4.274/intel64/bin/mpivars.sh
STARCCMPLUS_VERSION=14.04.011
PRECISION=-R8

INPUT=/shared/home/azureuser/test1.sim
export I_MPI_FABRICS=shm:ofa
export MPI_IB_PKEY=0x800c
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_DIR}/${STARCCMPLUS_VERSION}${PRECISION}/STAR-CCM+${STARCCMPLUS_VERSION}${PRECISION}/star/lib

PODKEY=

DISPLAY=0:0

[email protected]

#/opt/intel/impi/2018.4.274/intel64/bin/mpirun -machinefile /shared/home/azureuser/hosts IMB-MPI1 pingpong

${INSTALL_DIR}/${STARCCMPLUS_VERSION}${PRECISION}/STAR-CCM+${STARCCMPLUS_VERSION}${PRECISION}/star/bin/starccm+ -np ${NP} -machinefile /shared/home/azureuser/hosts -licpath ${CDLMD_LICENSE_FILE} -power -podkey ${PODKEY} -mpi intel -mpiflags "-ppn 1 -env I_MPI_DEBUG 5 -env I_MPI_FABRICS shm:ofa" -batch /shared/home/azureuser/solve_SS_b787_images.java -load ${INPUT}

Known Issues

  1. This tempate support only single administrator. So you have to use same user between superuser(initial Azure CycleCloud User) and deployment user of this template
  2. Currently AutoScale is disabled. you have to create execute node and get IP. In addtion, create hosts file for your execute node environment.

Azure CycleCloud用テンプレート:Siemens STAR-CCM+(NFS/PBSPro)

Azure CycleCloud はMicrosoft Azure上で簡単にCAE/HPC/Deep Learning用のクラスタ環境を構築できるソリューションです。(図はOSS PBS Proテンプレートの場合)

Azure CycleCloudの構築・テンプレート構成

Azure CyceCloudのインストールに関しては、こちら のドキュメントを参照してください。

STAR-CCM+用のテンプレートになっています。 以下の構成、特徴を持っています。

  1. OSS PBS ProジョブスケジューラをMasterノードにインストール
  2. H16r, H16r_Promo, HC44rs, HB60rs, HB120s_v2を想定したテンプレート、イメージ
    • OpenLogic CentOS 7.6 HPC を利用
  3. Masterノードに512GB * 2 のNFSストレージサーバを搭載
    • Executeノード(計算ノード)からNFSをマウント
  4. MasterノードのIPアドレスを固定設定
    • 一旦停止後、再度起動した場合にアクセスする先のIPアドレスが変更されない

Siemens STAR-CCM+ テンプレート構成

Siemens STAR-CCM+ テンプレートインストール方法

前提条件: テンプレートを利用するためには、Azure CycleCloud CLIのインストールと設定が必要です。詳しくは、 こちら の文書からインストールと展開されたAzure CycleCloudサーバのFQDNの設定が必要です。

  1. テンプレート本体をダウンロード
  2. 展開、ディレクトリ移動
  3. STAR-CCM+バイナリを準備
  4. project.ini内で利用するバイナリを設定
  5. cyclecloudコマンドラインからテンプレートインストール
    • tar zxvf cyclecloud-STAR-CCM+.tar.gz
    • cd cyclecloud-STAR-CCM+
    • cyclecloud project upload azure-storage
    • cyclecloud import_template -f templates/pbs_extended_nfs_starccm.txt
    • デフォルトのバイナリを変更可能(199行目当たりのデフォルトファイル名を設定変更)
  6. 削除したい場合、 cyclecloud delete_template STAR-CCM+ コマンドで削除可能

Copyright Hiroshi Tanaka, [email protected], @hirtanak All rights reserved. Use of this source code is governed by MIT license that can be found in the LICENSE file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.