Skip to content

cyrush/visit_pyopencl_exprs

Repository files navigation

VisIt pyopencl Expressions Sandbox

This repo will be used to develop support for OpenCL based VisIt expressions. For initial exploration and prototyping, we will bootstrap OpenCL into VisIt via pyopencl and VisIt's Python Expression capability.

Getting Started

  1. Install VisIt or setup a development build of the VisIt trunk.
VisIt Release Binaires:  https://wci.llnl.gov/codes/visit/executables.html
VisIt Trunk Anonymous SVN: http://portal.nersc.gov/svn/visit/trunk/src/
  1. Add visit to your path (bash examples):

Standard VisIt Install:

 > export PATH=$PATH:/path/to/visit/bin

OSX Bundle Install:

 > export PATH=$PATH:/path/to/VisIt.app/Contents/Resources/bin
  1. Clone this repo:
 > git clone https://github.com/cyrush/visit_pyopencl_exprs.git
  1. Use VisIt to install the required python support modules.

Note: You may have to load modules or set env vars to access the OpenCL headers and libs on your system. To use the NVIDIA OpenCL platform, you will need to load the proper CUDA environment. The shell scripts in the setup_scripts directory provide working examples for a few clusters.

 > visit -nowin -cli -s setup_scripts/install_visit_pyopencl_support.py
  1. Run module tests for flow & visit_flow_vpe
 > ./run_tests.sh

Getting Started with Flow Only (w/o) VisIt

If you would like to run outside of VisIt, the setup script should work with a standalone python as well.

 > python setup_scripts/install_visit_pyopencl_support.py
 > cd flow
 > python setup.py test

Getting Started On Edge (LLNL Visualization Cluster)

  1. Clone this repo:
 > git clone git://github.com/cyrush/visit_pyopencl_exprs.git
  1. Install necessary support python modules
 > ./setup_scripts/edge_gcc_setup.sh
  1. Run tests in an mxterm (to access GPUS)
 > mxterm 1 12 30
 [mxterm]> source setup_scripts/edge_gcc_env_vars.sh
 [mxterm]> ./run_tests.sh

About

VisIt pyopencl Expressions Sandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published