uweigand added a comment.

The problem is that the new test case you added does not contain a -triple 
argument in the compile command.  This means that the compile targets the 
native architecture on the build system, whatever this is.  Since OpenCL 
support on different architectures may be different (e.g. some may support the 
cl_khr_fp64 extension by default while others do not), you see the error only 
on some build architectures.

If you want to see the error, I guess you can force targeting SystemZ by adding 
"-triple s390x-ibm-linux-gnu" to the compile command.

To actually fix the problem, as mentioned above, add a -triple line that 
specifies an architecture where the extension is always known to be present.  
(Or else, I think you can force the extension to be available even if it is not 
by default on a target.)


https://reviews.llvm.org/D33353



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

Reply via email to