Changes in / [59994557:bba9361] in sasmodels
- Location:
- doc/ref/gpu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/ref/gpu/gpu_computations.rst
r711f17e r066f296 8 8 9 9 To run on the GPU, your computer must have OpenCL drivers installed. 10 For information about OpenCL installation see th is11 :ref:`opencl-installation` guidance.10 For information about OpenCL installation see the 11 :ref:`opencl-installation` documentation 12 12 13 13 Where the model is evaluated is a little bit complicated. … … 16 16 on the CPU. If the OpenCL driver is not available for the CPU then 17 17 it will run as a normal program on the CPU. 18 19 18 For models with a large number of parameters or with a lot of code, 20 19 the GPU may be too small to run the program effectively. 21 20 In this case, you should try simplifying the model, maybe breaking it 22 into several different mod ules so that you don't need *IF*statements in your code.21 into several different models so that you don't need if statements in your code. 23 22 If it is still too big, you can set *opencl=False* in the model file and 24 23 the model will only run as a normal program on the CPU. 25 24 This will not usually be necessary. 26 25 27 Device Selection28 ................29 26 If you have multiple GPU devices you can tell SasView which device to use. 30 27 By default, SasView looks for one GPU and one CPU device 31 28 from available OpenCL platforms. 32 29 33 SasView prefers AMD or NVIDIA drivers for GPU, and prefers Intel or 34 Apple drivers for CPU. Both GPU and CPU are included on the assumption that CPU 35 is always available and supports double precision. 30 It prefers AMD or NVIDIA drivers for GPU, and prefers Intel or 31 Apple drivers for CPU. 32 Both GPU and CPU are included on the assumption that CPU is always available 33 and supports double precision. 36 34 37 35 The device order is important: GPU is checked before CPU on the assumption that 38 36 it will be faster. By examining ~/sasview.log you can see which device SasView 39 37 chose to run the model. 40 41 38 If you don't want to use OpenCL, you can set *SAS_OPENCL=None* 42 39 in the environment, and it will only use normal programs. 43 44 40 If you want to use one of the other devices, you can run the following 45 41 from the python console in SasView:: … … 52 48 Use that value as the value of *SAS_OPENCL*. 53 49 54 Compiler Selection55 ..................56 50 For models run as normal programs, you may need to specify a compiler. 57 51 This is done using the SAS_COMPILER environment variable. … … 60 54 TinyCC is provided with SasView so that is the default. 61 55 If you want one of the other compilers, be sure to have it available 62 in your *PATH* so SasView can find it! 63 64 65 .. note:: 66 This help document was last changed by Steve King, 08Oct2016 56 on the path so SasView can find it. -
doc/ref/gpu/opencl_installation.rst
rec8b9a3 r6ae7957 4 4 OpenCL Installation 5 5 ******************* 6 *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 without 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.*7 6 8 7 1. Check if you have OpenCL already installed … … 10 9 11 10 Windows 12 ....... 11 ========= 13 12 The following instructions are based on 14 13 http://web.engr.oregonstate.edu/~mjb/cs475/DoIHaveOpenCL.pdf 15 14 16 * Go to: Start -> Control Panel -> System & Security ->Administrative Tools15 * Go to: Start -> Control Panel -> Administrative Tools 17 16 * Double Click on Computer Managment 18 17 * Click on Device Manager … … 24 23 25 24 Mac OSX 26 ....... 27 For OS X operating systems higher than 10.6 OpenCL is shipped along with the system. 28 29 However, OpenCL has had a rocky history on Macs. Apple provide a useful compatibility table at https://support.apple.com/en-us/HT202823 25 ========= 26 For OSXs higher than 10.6 OpenCL is shipped along with the system. 30 27 31 28 … … 34 31 35 32 Windows 36 ....... 37 Depen ding on the graphic card in your system, drivers33 ========= 34 Depeneding on the graphic card on your system, drivers 38 35 can be obtained from different sources: 39 36 40 * N VIDIA: https://developer.nvidia.com/opencl37 * Nvidia: https://developer.nvidia.com/opencl 41 38 * AMD: http://developer.amd.com/tools-and-sdks/opencl-zone/ 42 39 43 40 Mac OSX 44 ....... 41 ========= 45 42 N/A 46 47 You cannot download OpenCL driver updates for your Mac. They are packaged with the normal quarterly OS X updates from Apple.48 43 49 44 50 45 .. note:: 51 Intel provides OpenCL drivers for Intel processors at https://software.intel.com/en-us/articles/opencl-drivers 52 These can sometimes make use of special vector instructions across multiple 46 Note that Intel provides an OpenCL drivers for Intel processors: 47 https://software.intel.com/en-us/articles/opencl-drivers 48 This can sometimes make use of special vector instructions across multiple 53 49 processors, so it is worth installing if the GPU does not support double 54 50 precision. You can install this driver alongside the GPU driver for NVIDIA 55 51 or AMD. 56 57 58 .. note::59 This help document was last changed by Steve King, 08Oct2016
Note: See TracChangeset
for help on using the changeset viewer.