Dear Zigfried,

Zigfried Hampel-Arias <zig.hampel-ar...@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) 
>
>       Thanks,

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
vanish.

FWIW--this is not really something that has anything to do with
PyOpenCL--it's an issue with your (the Apple) CL driver.

HTH
Andreas

Attachment: signature.asc
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
https://lists.tiker.net/listinfo/pyopencl

Reply via email to