abduld/Parboil

parboil.h assumes that the environment has CL/cl.h

briansp2020 opened this issue · 1 comments

I'm trying to port parboil to run on AMD ROCm using HIP. While working on sgemm port, I found out that parboil.h assumes that cl.h is installed on the system. What proper way to detect whether the system has OpenCL or not?

Currently I'm working around it by adding APP_CFLAGS=-D __HIP_PLATFORM_HCC__ to sgemm/src/hip_base/Makefile (https://github.com/briansp2020/Parboil/blob/hip_sgemm/benchmarks/sgemm/src/hip_base/Makefile) but it seems a bit hackish.