Skip to content

NH89/opencl-sph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCL-Athena

How to run on Cluster

first ssh

ssh USERNAME@athena.pawsey.org.au

Clone

git clone https://github.com/NH89/opencl-sph

Load Intel modules for compatibility

module load intel-opencl-sdk 

Create build and install folder, and navigate into that folder

mkdir mybuild
mkdir install
cd mybuild

Run Cmake with hint

cmake -DCMAKE_INSTALL_PREFIX=../install .. -DOpenCL_LIBRARY=/pawsey/opencl-sdk/7.0.0/opencl/SDK/lib64/libOpenCL.so

(Alternatively load cuda module)

cmake -DCMAKE_INSTALL_PREFIX=../install .. 

make targets

make
make install 

Reserve resources of GPU

srun -A gpuhack02 -N 1 -p gpuq --reservation=gpu-hackathon --gres=gpu:2 --pty /bin/bash

Run executable

./install/bin/opencl_sph

Sit back and drink a coffee

OpenCL-SPH

An implementation of smoothed particle hydrodynamics using OpenCL.

This code is under development and may be subject to heavy revision at any time.

The nearest-neighbour search (NNS) algorithm is derived from the method used for Fluids v3. by Rama Hoetzlein.

Installation

  • Clone this repository

    git clone https://github.com/tauroid/opencl-sph
  • Edit the first line of makefile to point to your MATLAB installation

  • make

You will need OpenCL headers and libraries.

This has only been tested on linux, with gcc.

Usage

The current interface is through MATLAB - see go.m or go_fluid.m.

These implement an elastic solid based on Becker et al. 2009 and a simple pressure gradient fluid respectively.

Using particle configurations other than a cube at the moment requires manual specification in the position field of psdata.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.2%
  • Makefile 1.9%
  • MATLAB 1.5%
  • Other 1.4%