Autodetect OpenCL installation
Opened this issue · 5 comments
Right now we have a bunch of hardcoded OpenCL paths that seem to work for a variety of machines. However, it's pretty common to find a machine that doesn't put OpenCL where we look. We should come of with some way of automatically determining the right include paths so we don't have to keep adding more to the list.
Have you considered changing your build from a straight Makefile to something like CMake?
My experience with CMake so far has been that while it's nice for a fairly standard project, as soon as you try to do something like detect an OpenCL location it gets significantly more complicated. Plus, we're trying to keep our external dependencies to a minimum. Ideally, the steps to run the test suite should just be git clone ...; make
. CMake would add an extra piece of software our users have to install.
Minimizing external dependencies is laudable, but as soon as you start auto-detecting dependencies you're running into a bunch of code duplication with existing systems (Automake/Autoconf, CMake, etc.).
CMake comes on just about every distro and there's a number of FindOpenCL.cmake files out there to crib from.