kulnaman / Quicksilver

A proxy app for the Monte Carlo Transport Code, Mercury. LLNL-CODE-684037

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VARIORUM Integration

Introduction

This project shows hows variorum can be used as a Power and Energy instrumentation tool using source-code annoation APIs. These API are wrapper around relevant variorum calls with the main benifit being it provides a simple interface that logs data and writes them to file for each MPI node.

The project is compiled and tested on Lassen Systems using variorum v:0.8 and Quicksilver's commit eb68bb8.

Building

The above code Requires:

  • Variorum(Required)
  • CUDA(Optional)
  • MPI(Optional)
  • Rankstr(Optional): To collect data on all MPI nodes.
  • Jansson(Required): Parsing variourm Results.

Quicksilver's Makefile(LLNL CORAL EA nodes section) has been modified to add all the relevant flags.

API

Currently there are two API's:

  • VARIORUM_ANNOTATE_GET_POWER_INFO
  • VARIORUM_ANNOTATE_GET_ENERGY_INFO

Calling these API will result in recording the Calling Function's File, Name and Line Number with power or energy data, depending on the API called. The results are written to a csv file with the format: {node_hostname}_power_data.csv or {node_hostname}_energy_data.csv

Quicksilver

Introduction

Quicksilver is a proxy application that represents some elements of the Mercury workload by solving a simplified dynamic monte carlo particle transport problem. Quicksilver attempts to replicate the memory access patterns, communication patterns, and the branching or divergence of Mercury for problems using multigroup cross sections. OpenMP and MPI are used for parallelization. A GPU version is available. Unified memory is assumed.

Performance of Quicksilver is likely to be dominated by latency bound table look-ups, a highly branchy/divergent code path, and poor vectorization potential.

For more information, visit the LLNL co-design pages.

Building Quicksilver

Instructions to build Quicksilver can be found in the Makefile. Quicksilver is a relatively easy to build code with no external dependencies (except MPI and OpenMP). You should be able to build Quicksilver on nearly any system by customizing the values of only four variables in the Makefile:

  • CXX The name of the C++ compiler (with path if necessary) Quicksilver uses C++11 features, so a C++11 compliant compiler should be used.

  • CXXFLAGS Command line switches to pass to the C++ compiler when compiling objects and when linking the executable.

  • CPPFLAGS Command line switches to pass to the compiler only when compiling objects

  • LDFLAGS Command line switches to pass to the compiler only when linking the executable

Sample definitions for a number of common systems are provided.

Quicksilver recognizes a number of pre-processor macros that enable or disable various code features such as MPI, OpenMP, etc. These are described in the Makefile.

Running Quicksilver

Quicksilver’s behavior is controlled by a combination of command line options and an input file. All of the parameters that can be set on the command line can also be set in the input file. The input file values will override the command line. Run $ qs –h to see documentation on the available command line switches. Documentation of the input file parameters is in preparation.

Quicksilver also has the property that the output of every run is a valid input file. Hence you can repeat any run for which you have the output file by using that output as an input file.

License and Distribution Information

Quicksilver is available on github

Quicksilver is open source software with a BSD license. See LICENSE.md

This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.

LLNL-CODE-684037

About

A proxy app for the Monte Carlo Transport Code, Mercury. LLNL-CODE-684037

License:Other


Languages

Language:C++ 96.6%Language:Makefile 3.4%Language:Shell 0.0%