Difference between revisions of "Tutorial"

From VTKM
Jump to navigation Jump to search
Line 31: Line 31:
 
== Download tutorial materials ==
 
== Download tutorial materials ==
  
* [[http://ix.cs.uoregon.edu/~hank/VTKm_tutorial_Jul19.pptx slides]]
+
# [[http://ix.cs.uoregon.edu/~hank/VTKm_tutorial_Jul19.pptx slides]]
* [[http://ix.cs.uoregon.edu/~hank/VTKm_tutorial_examples.tar examples]]
+
# [[http://ix.cs.uoregon.edu/~hank/VTKm_tutorial_examples.tar examples]]
* [[http://ix.cs.uoregon.edu/~hank/kitchen.vtk data file]]  (on Mac: right-click and "Save Link As")
+
# [[http://ix.cs.uoregon.edu/~hank/kitchen.vtk data file]]  (on Mac: right-click and "Save Link As")
 +
 
 +
 
 +
== Build example code ==
 +
 
 +
 
 +
Your process on Unix/Mac should be something like:
 +
 
 +
<pre>
 +
# (downloads from above)
 +
# tar xvf VTKm_tutorial_examples.tar
 +
# cd VTKm_tutorial_examples
 +
# <edit your CMakeLists.txt file so that VTKm_DIR points to the correct location>
 +
# cmake .
 +
# make
 +
</pre>

Revision as of 21:33, 29 July 2019

WARNING: Under development!


About this page

This page contains materials for a VTK-m tutorial. A mini version of the tutorial will be offered at the VTK-m Code Sprint in Albuquerque on July 30th. The full version (3.5 hours) will be offered at VIS19 in Vancouver, Canada on Sunday October 20th.


Download and build VTK-m

The instructions to download and build are here.

Recommendations:

  • Download V1.4.0 here.
    • (note the build page assumes you will be accessing the master via a git clone, but we encourage you to use the released version for the tutorial)
  • Do not enable the TBB or CUDA, at least at first.
    • (we stand behind our support for these backends, but it is good to start simple)

In all, your process on Unix/Mac should be something like:

# (download VTK-m 1.4.0)
# tar xvfz vtk-m-v1.4.0.tar.gz
# mkdir vtkm-build # out of source build
# cd vtkm-build
# cmake ../vtk-m
# make

Download tutorial materials

  1. [slides]
  2. [examples]
  3. [data file] (on Mac: right-click and "Save Link As")


Build example code

Your process on Unix/Mac should be something like:

# (downloads from above)
# tar xvf VTKm_tutorial_examples.tar
# cd VTKm_tutorial_examples
# <edit your CMakeLists.txt file so that VTKm_DIR points to the correct location>
# cmake .
# make