Zigfried Hampel-Arias <zig.hampel-arias(a)icecube.wisc.edu> writes:
I’ve recently updated my Mac Laptop from El Capitan
to Mojave and am now getting some build errors in my previously working PyOpenCL project.
The project can be found on this GitHub repo
When I try `python run.py` located in the repo/crprop directory, the error I’m getting
is related to pow, tan, and sqrt. I get errors like
error: call to '__cl_pow' is ambiguous
Has anyone else experienced these build errors? I am including the kernel and
supplementary cl files on line 487 via
program.build(options=[‘-I %s’%cl_src_path], cache_dir=None)
I suspect what's happening is that you're calling pow with mixed
arguments ((double, int) in the case you show), and the compiler is
having trouble figuring out what you mean. If you cast all your
arguments to the intended type (double I imagine), the error should
FWIW--this is not really something that has anything to do with
PyOpenCL--it's an issue with your (the Apple) CL driver.