- Timestamp:
- Sep 27, 2017 4:29:00 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 9f8ade1
- Parents:
- 9844c3a
- Location:
- doc/guide
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/guide/index.rst
r2e66ef5 rc0d7ab3 9 9 intro.rst 10 10 install.rst 11 gpu_setup.rst 11 12 pd/polydispersity.rst 12 13 resolution.rst -
doc/guide/install.rst
rf8a2baa rc0d7ab3 53 53 This will allow you to edit the files in the package and have the changes 54 54 show up immediately in python the next time you load your program. 55 56 OpenCL Installation57 *******************58 *Warning! GPU devices do not in general offer the same level of memory59 protection as CPU devices. If your code attempts to write outside allocated60 memory buffers unpredicatable behaviour may result (eg, your video display61 may freeze, or your system may crash, etc). Do not install OpenCL drivers62 without first checking for known issues (eg, some computer manufacturers63 install modified graphics drivers so replacing these may not be a good64 idea!). If in doubt, seek advice from an IT professional before proceeding65 further.*66 67 Check if you have OpenCL already installed68 ==========================================69 70 **Windows**71 72 The following instructions are based on73 http://web.engr.oregonstate.edu/~mjb/cs475/DoIHaveOpenCL.pdf74 75 * Go to: Start -> Control Panel -> System & Security -> Administrative Tools76 * Double Click on Computer Managment77 * Click on Device Manager78 * Click open Display Adapters79 * Right-click on available adapter and select Properties80 * Click on Driver81 * Go to Driver Details82 * Scroll down and see if OpenCL is installed (look for OpenCL*.dll files)83 84 **Mac OSX**85 86 For OS X operating systems higher than 10.6 OpenCL is shipped along with87 the system.88 89 However, OpenCL has had a rocky history on Macs. Apple provide a useful90 compatibility table at https://support.apple.com/en-us/HT20282391 92 93 Installation94 ============95 96 **Windows**97 98 Depending on the graphic card in your system, drivers99 can be obtained from different sources:100 101 * NVIDIA: https://developer.nvidia.com/opencl102 * AMD: http://developer.amd.com/tools-and-sdks/opencl-zone/103 104 105 **Mac OSX**106 107 N/A108 109 You cannot download OpenCL driver updates for your Mac. They are packaged110 with the normal quarterly OS X updates from Apple.111 112 113 .. note::114 Intel provides OpenCL drivers for Intel processors at115 https://software.intel.com/en-us/articles/opencl-drivers116 These can sometimes make use of special vector instructions across multiple117 processors, so it is worth installing if the GPU does not support double118 precision. You can install this driver alongside the GPU driver for NVIDIA119 or AMD.120 121 122 GPU Selection123 *************124 125 sasmodels evaluations can run on your graphics card (GPU) or they can run126 on the processor (CPU). In general, calculations performed on the GPU will run faster.127 128 To run on the GPU, your computer must have OpenCL drivers installed.129 For information about OpenCL installation see this130 :ref:`opencl-installation` guidance.131 132 Where the model is evaluated is a little bit complicated.133 If the model has the line *single=False* then it requires double precision.134 If the GPU is single precision only, then it will try running via OpenCL135 on the CPU. If the OpenCL driver is not available for the CPU then136 it will run as a normal program on the CPU.137 138 For models with a large number of parameters or with a lot of code,139 the GPU may be too small to run the program effectively.140 In this case, you should try simplifying the model, maybe breaking it141 into several different modules so that you don't need *IF* statements in your code.142 If it is still too big, you can set *opencl=False* in the model file and143 the model will only run as a normal program on the CPU.144 This will not usually be necessary.145 146 Device Selection147 ================148 If you have multiple GPU devices you can tell SasView which device to use.149 By default, SasView looks for one GPU and one CPU device150 from available OpenCL platforms.151 152 SasView prefers AMD or NVIDIA drivers for GPU, and prefers Intel or153 Apple drivers for CPU. Both GPU and CPU are included on the assumption that CPU154 is always available and supports double precision.155 156 The device order is important: GPU is checked before CPU on the assumption that157 it will be faster. By examining ~/sasview.log you can see which device SasView158 chose to run the model.159 160 **If you don't want to use OpenCL, you can set** *SAS_OPENCL=None*161 **in your environment settings, and it will only use normal programs.**162 163 If you want to use one of the other devices, you can run the following164 from the python console in SasView::165 166 import pyopencl as cl167 cl.create_some_context()168 169 This will provide a menu of different OpenCL drivers available.170 When one is selected, it will say "set PYOPENCL_CTX=..."171 Use that value as the value of *SAS_OPENCL*.172 173 Compiler Selection174 ==================175 For models run as normal programs, you may need to specify a compiler.176 This is done using the SAS_COMPILER environment variable.177 Set it to *tinycc* for the tinycc compiler, *msvc* for the178 Microsoft Visual C compiler, or *mingw* for the MinGW compiler.179 TinyCC is provided with SasView so that is the default.180 If you want one of the other compilers, be sure to have it available181 in your *PATH* so SasView can find it!182 183 184 *Document History*185 186 | 2017-05-17 Paul Kienzle
Note: See TracChangeset
for help on using the changeset viewer.