Skip to content

Instantly share code, notes, and snippets.

@eholk
Created December 5, 2012 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eholk/4217726 to your computer and use it in GitHub Desktop.
Save eholk/4217726 to your computer and use it in GitHub Desktop.
LLVM/PTX Error from unsupported LLVM code
unexpected address space
UNREACHABLE executed at /usr/local/src/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp:1257!
0 llc 0x000000010a169a72 void* llvm::object_creator<std::vector<std::string, std::allocator<std::string> > >() + 10722
1 llc 0x000000010a16a029 void* llvm::object_creator<std::vector<std::string, std::allocator<std::string> > >() + 12185
2 libsystem_c.dylib 0x00007fff89c728ea _sigtramp + 26
3 libsystem_c.dylib 0x00007fbcd1c05130 _sigtramp + 18446743787154253920
4 llc 0x000000010a169cc6 void* llvm::object_creator<std::vector<std::string, std::allocator<std::string> > >() + 11318
5 llc 0x000000010a158eb2 void* llvm::object_creator<std::vector<char const*, std::allocator<char const*> > >() + 49634
6 llc 0x0000000109819436 llvm::Pass* llvm::callDefaultCtor<llvm::NVPTXAllocaHoisting>() + 161766
7 llc 0x0000000109818487 llvm::Pass* llvm::callDefaultCtor<llvm::NVPTXAllocaHoisting>() + 157751
8 llc 0x0000000109817330 llvm::Pass* llvm::callDefaultCtor<llvm::NVPTXAllocaHoisting>() + 153312
9 llc 0x000000010a1075a0 std::vector<llvm::Type*, std::allocator<llvm::Type*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Type**, std::vector<llvm::Type*, std::allocator<llvm::Type*> > >, llvm::Type* const&) + 26896
10 llc 0x000000010a107c6f std::vector<llvm::Type*, std::allocator<llvm::Type*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Type**, std::vector<llvm::Type*, std::allocator<llvm::Type*> > >, llvm::Type* const&) + 28639
11 llc 0x000000010a107dd6 std::vector<llvm::Type*, std::allocator<llvm::Type*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Type**, std::vector<llvm::Type*, std::allocator<llvm::Type*> > >, llvm::Type* const&) + 28998
12 llc 0x000000010a108392 std::vector<llvm::Type*, std::allocator<llvm::Type*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Type**, std::vector<llvm::Type*, std::allocator<llvm::Type*> > >, llvm::Type* const&) + 30466
13 llc 0x000000010a10857d std::vector<llvm::Type*, std::allocator<llvm::Type*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Type**, std::vector<llvm::Type*, std::allocator<llvm::Type*> > >, llvm::Type* const&) + 30957
14 llc 0x00000001097618bd
15 llc 0x0000000109760334
Stack dump:
0. Program arguments: llc -march=nvptx -mcpu=sm_13 trivial-kernel.ll -o trivial-kernel.ptx
1. Running pass 'Function Pass Manager' on module 'trivial-kernel.ll'.
Illegal instruction: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment