Index: doc/guide/gpu/gpu_computations.rst
===================================================================
--- doc/guide/gpu/gpu_computations.rst	(revision 8ae853293022b5081a1e1a8c26f74eaa2b3f8a13)
+++ 	(revision )
@@ -1,73 +1,0 @@
-.. _models-computation:
-
-****************
-GPU Computations
-****************
-sasmodels evaluations can run on your graphics card (GPU) or they can run
-on the processor (CPU). In general, calculations performed on the GPU will run faster.
-
-To run on the GPU, your computer must have OpenCL drivers installed.
-For information about OpenCL installation see this
-:ref:`opencl-installation` guidance.
-
-Where the model is evaluated is a little bit complicated.
-If the model has the line *single=False* then it requires double precision.
-If the GPU is single precision only, then it will try running via OpenCL
-on the CPU.  If the OpenCL driver is not available for the CPU then
-it will run as a normal program on the CPU.
-
-For models with a large number of parameters or with a lot of code,
-the GPU may be too small to run the program effectively.
-In this case, you should try simplifying the model, maybe breaking it
-into several different modules so that you don't need *IF* statements in your code.
-If it is still too big, you can set *opencl=False* in the model file and
-the model will only run as a normal program on the CPU.
-This will not usually be necessary.
-
-Device Selection
-................
-If you have multiple GPU devices you can tell SasView which device to use.
-By default, SasView looks for one GPU and one CPU device
-from available OpenCL platforms.
-
-OpenCL devices can be set from OpenCL options dialog in Fitting menu or as
-enviromental variables.
-
-**If you don't want to use OpenCL, you can select "No OpenCL" option from**
-**GUI dialog or set *SAS_OPENCL=None* in your environment settings**
-**This will only use normal programs.**
-
-SasView prefers AMD or NVIDIA drivers for GPU, and prefers Intel or
-Apple drivers for CPU. Both GPU and CPU are included on the assumption that CPU
-is always available and supports double precision.
-
-The device order is important: GPU is checked before CPU on the assumption that
-it will be faster. By examining ~/sasview.log you can see which device SasView
-chose to run the model.
-
-If you want to use one of the other devices, you can select it from OpenCL
-options dialog (accessible from Fitting menu) or run the following from
-the python console in SasView::
-
-    import pyopencl as cl
-    cl.create_some_context()
-
-This will provide a menu of different OpenCL drivers available.
-When one is selected, it will say "set PYOPENCL_CTX=..."
-Use that value as the value of *SAS_OPENCL*.
-
-Compiler Selection
-..................
-For models run as normal programs, you may need to specify a compiler.
-This is done using the SAS_COMPILER environment variable.
-Set it to *tinycc* for the tinycc compiler, *msvc* for the
-Microsoft Visual C compiler, or *mingw* for the MinGW compiler.
-TinyCC is provided with SasView so that is the default.
-If you want one of the other compilers, be sure to have it available
-in your *PATH* so SasView can find it!
-
-
-*Document History*
-
-| 2016-10-08 Steve King
-| 2017-05-07 Paul Kienzle
Index: doc/guide/gpu/opencl_installation.rst
===================================================================
--- doc/guide/gpu/opencl_installation.rst	(revision 990d8dfe5ac399564bc0bb3b873c5a1b56d4e573)
+++ 	(revision )
@@ -1,70 +1,0 @@
-.. _opencl-installation:
-
-*******************
-OpenCL Installation
-*******************
-*Warning! GPU devices do not in general offer the same level of memory
-protection as CPU devices. If your code attempts to write outside allocated
-memory buffers unpredicatable behaviour may result (eg, your video display
-may freeze, or your system may crash, etc). Do not install OpenCL drivers
-ithout first checking for known issues (eg, some computer manufacturers
-install modified graphics drivers so replacing these may not be a good
-idea!). If in doubt, seek advice from an IT professional before proceeding
-further.*
-
-1. Check if you have OpenCL already installed
-=============================================
-
-Windows
-.......
-    The following instructions are based on
-    http://web.engr.oregonstate.edu/~mjb/cs475/DoIHaveOpenCL.pdf
-
-    * Go to: Start -> Control Panel -> System & Security -> Administrative Tools
-    * Double Click on Computer Managment
-    * Click on Device Manager
-    * Click open Display Adapters
-    * Right-click on available adapter and select Properties
-    * Click on Driver
-    * Go to Driver Details
-    * Scroll down and see if OpenCL is installed (look for OpenCL*.dll files)
-
-Mac OSX
-.......
-    For OS X operating systems higher than 10.6 OpenCL is shipped along with
-    the system.
-
-    However, OpenCL has had a rocky history on Macs. Apple provide a useful
-    compatibility table at https://support.apple.com/en-us/HT202823
-
-
-2. Installation
-===============
-
-Windows
-.......
-    Depending on the graphic card in your system, drivers
-    can be obtained from different sources:
-
-    * NVIDIA: https://developer.nvidia.com/opencl
-    * AMD: http://developer.amd.com/tools-and-sdks/opencl-zone/
-
-Mac OSX
-.......
-    N/A
-
- You cannot download OpenCL driver updates for your Mac. They are packaged
- with the normal quarterly OS X updates from Apple.
-
-
-.. note::
-    Intel provides OpenCL drivers for Intel processors at
-    https://software.intel.com/en-us/articles/opencl-drivers
-    These can sometimes make use of special vector instructions across multiple
-    processors, so it is worth installing if the GPU does not support double
-    precision. You can install this driver alongside the GPU driver for NVIDIA
-    or AMD.
-
-
-.. note::
-    This help document was last changed by Steve King, 08Oct2016
Index: doc/guide/plugin.rst
===================================================================
--- doc/guide/plugin.rst	(revision 990d8dfe5ac399564bc0bb3b873c5a1b56d4e573)
+++ doc/guide/plugin.rst	(revision 870a2f45e993d96ff75196552953ec259f2ba197)
@@ -610,5 +610,5 @@
 
         :code:`source = ["lib/polevl.c", ...]`
-        (`link to code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/polevl.c>`_)
+        (`polevl.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/polevl.c>`_)
 
     sas_gamma(x):
@@ -618,6 +618,6 @@
         on some platforms.
 
-        :code:`source = ["lib/sasgamma.c", ...]`
-        (`link to code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_gamma.c>`_)
+        :code:`source = ["lib/sas_gamma.c", ...]`
+        (`sas_gamma.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_gamma.c>`_)
 
     sas_erf(x), sas_erfc(x):
@@ -631,5 +631,5 @@
 
         :code:`source = ["lib/polevl.c", "lib/sas_erf.c", ...]`
-        (`link to error functions' code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_erf.c>`_)
+        (`sas_erf.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_erf.c>`_)
 
     sas_J0(x):
@@ -640,5 +640,5 @@
 
         :code:`source = ["lib/polevl.c", "lib/sas_J0.c", ...]`
-        (`link to Bessel function's code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J0.c>`_)
+        (`sas_J0.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J0.c>`_)
 
     sas_J1(x):
@@ -649,5 +649,5 @@
 
         :code:`source = ["lib/polevl.c", "lib/sas_J1.c", ...]`
-        (`link to Bessel function's code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J1.c>`_)
+        (`sas_J1.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J1.c>`_)
 
     sas_JN(n, x):
@@ -660,5 +660,5 @@
 
         :code:`source = ["lib/polevl.c", "lib/sas_J0.c", "lib/sas_J1.c", "lib/sas_JN.c", ...]`
-        (`link to Bessel function's code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_JN.c>`_)
+        (`sas_JN.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_JN.c>`_)
 
     sas_Si(x):
@@ -684,5 +684,5 @@
 
         :code:`source = ["lib/Si.c", ...]`
-        (`link to code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/Si.c>`_)
+        (`Si.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/Si.c>`_)
 
     sas_3j1x_x(x):
@@ -695,5 +695,5 @@
 
         :code:`source = ["lib/sas_3j1x_x.c", ...]`
-        (`link to code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_3j1x_x.c>`_)
+        (`sas_3j1x_x.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_3j1x_x.c>`_)
 
 
@@ -704,5 +704,5 @@
 
         :code:`source = ["lib/polevl.c", "lib/sas_J1.c", ...]`
-        (`link to Bessel form's code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J1.c>`_)
+        (`sas_J1.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/sas_J1.c>`_)
 
 
@@ -715,5 +715,5 @@
 
         :code:`source = ["lib/gauss76.c", ...]`
-        (`link to code <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/gauss76.c>`_)
+        (`gauss76.c <https://github.com/SasView/sasmodels/tree/master/sasmodels/models/lib/gauss76.c>`_)
 
 
