Hi Andreas,

Thanks for the suggestion. Indeed, I simply had to rewrite some of my function calls by making the arguments floats, and in the sqrt and tan cases, to define explicitly the arguments as separate variables. It now works just fine. Cheers,


Zigfried Hampel-Arias
Physics PhD
BAEF Postdoctoral Fellow IIHE

Le 1 oct. 2018 à 13:19, Andreas Kloeckner <lists@informa.tiker.net> a écrit :

Dear Zigfried,

Zigfried Hampel-Arias <zig.hampel-arias@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 <https://github.com/zhampel/cr-geomag-prop>.

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.

PyOpenCL mailing list