I'm having a little trouble reprodicing that error in a simple example which I can post, but here's another error:
struct Test {
device float* foo;
void write() {
foo[0] = 0;
}
};
kernel void testError() {
Test t;
t.write();
}
When calling makeComputePipelineState, I get:
Error Domain=CompilerError Code=1 "Unhandled atom in intrinsic: llvm.trap" UserInfo={NSLocalizedDescription=Unhandled atom in intrinsic: llvm.trap}
on my mac and
Error Domain=AGXMetalA9 Code=1 "Compiler encountered an internal error" UserInfo={NSLocalizedDescription=Compiler encountered an internal error}
on my iPad.
Initializing foo seems to be a work-around.
Shall I file a bug?