Coder Social home page Coder Social logo

astropenguin / priism-benchmark Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 62 KB

Python 3 environment for benchmarking PRIISM

License: MIT License

Shell 42.02% Python 57.98%
astronomy radio-astronomy priism sparse-modeling casa benchmark python

priism-benchmark's Introduction

priism-benchmark

Python 3 environment for benchmarking PRIISM

Basic usage

Install Poetry

This repository manages dependent Python packages by Poetry. Please install it to your environment if you do not have it.

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -

Clone this repository and install dependencies

This will create a virtual environment and install the dependencies on it.

git clone https://github.com/astropenguin/priism-benchmark.git
cd priism-benchmark
poetry install

Run benchmark (HL Tau)

This will download the HL Tau SV data and run SpM imaging with multiple PRIISM versions and numbers of threads:

poetry run bin/hltau/benchmark priism-0.7.15,priism-0.7.16 32,64

where the first argument should be comma-separated PRIISM versions (i.e. tag or commit ref.) and the second argument should be comma-separated OMP_NUM_THERADSs.

Output FITS images and a log file will be put in /path/to/repository/log/hltau. The format of the log file (benchmark.csv) is like:

PRIISM version,Number of threads,Elapsed time (s)
priism-0.7.15,32,113.62
priism-0.7.15,64,144.67
priism-0.7.16,32,97.42
priism-0.7.16,64,106.51

where the first, second, and third columns correspond to the PRIISM version, the number of threads used for imaging, and the elapsed time (in seconds) of imaging (i.e. imager.solve(...)), respectively.

Advanced usage

PRIISM build options

PRIISM build options can be specified by an environment variable PRIISM_BUILD_OPTIONS:

PRIISM_BUILD_OPTIONS="-X yes" poetry run bin/hltau/benchmark priism-0.7.15,priism-0.7.16 8,32,64

Use as a PRIISM installer

You may also use this repository as a simple way of installing PRIISM (and dependencies):

poetry install
PRIISM_BUILD_OPTIONS="-X yes" poetry run bin/install-priism priism-0.7.16

Then you can run your own script that uses PRIISM:

poetry run python /path/to/script.py

priism-benchmark's People

Contributors

astropenguin avatar

Watchers

 avatar  avatar

priism-benchmark's Issues

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.