Rendering Using GPU

Looks like you copied incorrectly :

  auto mapper =
    vtkSmartPointer<vtkOpenGLGPUVolumeRayCastMapper>::New();