I am trying to build pocl with clang-3.4 (pre-release). This fails in atomics.cl, possibly simply because this is the first file of the kernel library to be built. This file demonstrates the problem:
int atomic_xchg(volatile __global int *p, int val)
{
return __atomic_exchange_n(p, val, __ATOMIC_RELAXED);
}
This invocation demonstrates the problem (on OS X, x86-64):
/Users/eschnett/llvm-3.4/bin/clang --target=x86_64-apple-macosx10.9.0
-march=core-avx-i -Xclang -ffake-address-space-map -emit-llvm -x cl -c
atomic_xchg_n.cl
This results in a backtrace starting with
Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create,
file /Users/eschnett/src/llvm-3.4/lib/IR/Instructions.cpp, line 2352.
This invokation works (leaving out -ffake-address-space):
/Users/eschnett/llvm-3.4/bin/clang --target=x86_64-apple-macosx10.9.0
-march=core-avx-i -emit-llvm -x cl -c atomic_xchg_n.cl
What should we do? Pre-relase clang-3.4 is rather important for us. Should we
omit -ffake-address-space-map? Or does this need to be addressed in clang?
-erik
--
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu/.
signature.asc
Description: Message signed with OpenPGP using GPGMail
------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
