Changes between Version 26 and Version 27 of ModelConvInst


Ignore:
Timestamp:
Dec 23, 2015 1:42:21 PM (9 years ago)
Author:
smk78
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ModelConvInst

    v26 v27  
    145145}}} 
    146146 
    147 This will result in some comparison metrics between the OpenCL implementation (if installed - should revert to using ctypes if no OpenCL is installed) and a plot of the two calculations and a comparison plot. 
     147This will result in some comparison metrics between the OpenCL implementation (if installed - should revert to using ctypes if no OpenCL is installed) and a plot of the two calculations and a comparison plot; ie, three plots. If you do not see three plots, see the note on OpenCL issues at the bottom of the page. 
    148148 
    149149If the model has 2D orientational calculation, then you should additionally test with: 
     
    214214 
    215215Once compare and the unit test(s) pass properly and everything is done, commit your new model to the repo and then edit the models table at [http://trac.sasview.org/wiki/ListofModels] to indicate that the conversion is complete. 
     216 
     217 
     218'''OPENCL ISSUES''' 
     219If the compare.sh modelname -1d test only generates one plot instead of three, or the compare.sh modelname -2d test complains that there is "No module named pyopencl", then you may not have OpenCL installed or set-up correctly. There are two parts to satisfying this: 
     220 
     2211. Make sure you have an OpenCL driver installed that is compatible with your graphics card: 
     222 - GeForce (Nvidia): [http://www.nvidia.com/Download/index.aspx?lang=en-us] 
     223 - Radeon/FirePro (AMD): [http://support.amd.com/en-us/kb-articles/Pages/OpenCL2-Driver.aspx] 
     224 - Iris/HD (Intel): [https://software.intel.com/en-us/articles/opencl-drivers] 
     225 
     2262. Make sure you have pyopencl installed: 
     227 - Windows binaries are available at [http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopencl] 
     228 - Note: the link above distributes packages as 'wheels' (.whl). 
     229 - To install a wheel (this example being for a 32-bit Python 2.7 installation with no additional packages), cd to the download folder and then: 
     230{{{ 
     231python -m pip install pyopencl-2015.1-cp27-none-win32.whl 
     232}}} 
     233 
     234