StreamHPC / gromacs

OpenCL porting of the GROMACS molecular simulation toolkit
http://www.gromacs.org
Other
25 stars 4 forks source link

cmake OpenCL detection and initialization #10

Closed ancahamuraru closed 9 years ago

ancahamuraru commented 9 years ago

Medium-low priority issue

  1. Test the Windows branches from gmxManageOpenCL.cmake for Linux
  2. Have just one branch that would work for both Windows and Linux (and everything else)
  3. Check OPENCL_DEFINITIONS for Windows - currently it throws errors when building the VS project
  4. Check if both GMX_DETECT_OPENCL_AVAILABLE and OPENCL_FOUND are needed.
  5. Decide if GMX_OPENCL_FORCE_LOCAL_HEADERS should be kept or not.
dkarkoulis commented 9 years ago

(1). Test the Windows branches from gmxManageOpenCL.cmake for Linux (2). Have just one branch that would work for both Windows and Linux (and everything else).

(3). Check OPENCL_DEFINITIONS for Windows - currently it throws errors when building the VS project.

(4). Check if both GMX_DETECT_OPENCL_AVAILABLE and OPENCL_FOUND are needed.

(5). Decide if GMX_OPENCL_FORCE_LOCAL_HEADERS should be kept or not.

ancahamuraru commented 9 years ago

(1) - (4) All done. (5). Decide if GMX_OPENCL_FORCE_LOCAL_HEADERS should be kept or not. GMX_OPENCL_FORCE_LOCAL_HEADERS should be removed. See comments below. Very low priority!!!

Needs to be discussed. The benefit is that someone can build the OpenCL part of Gromacs without downloading a whole SDK just for a handful of headers. I.e. a display driver that deploys libOpenCL is all that is needed.

This does not apply to Windows where you do need the SDK for the .lib files.

ancahamuraru commented 9 years ago

GMX_OPENCL_FORCE_LOCAL_HEADERS removed. See 434b55a4e58b594067fb52a9cdce50968c29674f.