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.
- 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/
- 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
- Clone this repo:
> git clone https://github.com/cyrush/visit_pyopencl_exprs.git
- 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
- Run module tests for flow & visit_flow_vpe
> ./run_tests.sh
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
- Clone this repo:
> git clone git://github.com/cyrush/visit_pyopencl_exprs.git
- Install necessary support python modules
> ./setup_scripts/edge_gcc_setup.sh
- 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