jlebar added a comment.

> Is this because the functions are in <cmath> instead of in <complex> are you 
> don't want to mark all of <cmath> as host/device?

Yes.  cmath is its own beast; we need to have our own implementation of it in 
order to direct the std functions to the appropriate low-level device 
functions.  (And even if this could somehow be made to work with libc++, we'd 
still need it for libstdc++, so doing it one way, even if it's horrible, is 
very likely preferable to doing it two ways.)


https://reviews.llvm.org/D25403



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to