ElvisSuperZhang / ramsesGPU

Astrophysics MHD simulation code optimized for large cluster of GPU

Home Page:http://www.maisondelasimulation.fr/projects/RAMSES-GPU/html/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WARNING: This code is mostly deprecated. Have a look at ppkMHD

DOI

mhd_mri 200x200

Magneto Rotational Instability simulation in a shearing box setup (800x1600x800) made in 2013 on TGCC/CURIE using 256 GPUs. Here Reynolds number is 25000 and Prandtl number is 4.

RamsesGPU code

RamsesGPU website

http://www.maisondelasimulation.fr/projects/RAMSES-GPU/html/index.html

  • See doxygen-generated documentation in doc sub-directory

  • Quickstart for building RAMSES-GPU using CMake (recommended)

Default CUDA compilation flags can be passed to cmake using env variable CUDAFLAGS, or directly set CMAKE_CUDA_FLAGS on the configuration command line (see below).

  1. git clone https://github.com/pkestene/ramsesGPU.git
  2. cd ramsesGPU; mkdir build
  3. cmake -DUSE_CUDA=ON -DUSE_MPI=ON -DCMAKE_CUDA_FLAGS="-arch=sm_50" ..
  4. make

You should get executable ramsesGPU_mpi_cuda. Explore other flag using the ccmake user interface.

  • Quickstart for building RAMSES-GPU using autotools (deprecated)
  1. make sure to have up-to-date autotools on you build system (autoconf, automake, libtool, m4); then run sh autogen.sh
  2. configure --with-cuda=
  3. make (or make -j N to speed-up compilation time; you might need to execute make several times when using option -j)

Note: make sure to have CUDA toolkit installed, and environment variables PATH and LD_LIBRARY_PATH correctly set.

This will build the monoCPU / monoGPU version of the programme to solve hydro/MHD problems. Executable are located in src subdirectory and named euler_cpu / euler_gpu

Execute a test run:

	cd src
	./euler_gpu --param ../data/jet2d_gpu.ini

This will start a Hydrodynamics 2D jet simulation run. Output files can be in multiple file format (VTK, Hdf5, ...).

To visualize Hdf5 output, just run:

	paraview --data=./jet2d_gpu.xmf

Contact, questions, comments:

pierre.kestener at cea.fr

About

Astrophysics MHD simulation code optimized for large cluster of GPU

http://www.maisondelasimulation.fr/projects/RAMSES-GPU/html/index.html

License:Other


Languages

Language:C++ 65.0%Language:Cuda 17.7%Language:M4 6.2%Language:C 5.6%Language:Objective-C 2.0%Language:Makefile 1.2%Language:Python 1.1%Language:CMake 1.1%Language:Shell 0.1%