StreamHPC / gromacs

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

Handle OpenCL parameters for the compilation of kernels #8

Closed dkarkoulis closed 9 years ago

dkarkoulis commented 10 years ago

Until now the OpenCL JIT compiler options are hardcoded and they need to be automated. Compiler options should be added based on the platform, device type and build type. For example on an AMD device "-x clc++" the option needs to be appended for the kernels to compile.

dkarkoulis commented 9 years ago

A basic backend to pass compilation options to the OpenCL compiler has been implemented. It handles special cases (AMD clc++, even though not needed anymore) and include paths for other opencl files and headers.

It should be enough for now!