https://llvm.org/bugs/show_bug.cgi?id=30593
Bug ID: 30593 Summary: ptxas fatal : Unresolved extern function '__cxa_begin_catch' Product: clang Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: CUDA Assignee: unassignedclangb...@nondot.org Reporter: crtr...@sandia.gov CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17395 --> https://llvm.org/bugs/attachment.cgi?id=17395&action=edit Reproducer cya_begin_catch_error I am getting this error for a particular situation in our Kokkos library. Unfortunately I wasn't able to replicate it without the whole library. But I tracked it down to a situation that with a meaningless if condition added it breaks, without the condition it compiles. This is the code: #include<Kokkos_Core.hpp> template< class Space > struct NestedView { Kokkos::View<int*,Space> member ; public: KOKKOS_INLINE_FUNCTION NestedView() : member() {} KOKKOS_INLINE_FUNCTION ~NestedView() { #ifdef BUG if(member.dimension_0() != 0) { } #endif } }; Kokkos::View<NestedView<Kokkos::Cuda>*,Kokkos::CudaUVMSpace> foo() { return Kokkos::View<NestedView<Kokkos::Cuda>*,Kokkos::CudaUVMSpace>("A",10); } I attach a tar file with it. To build you need to clone Kokkos (github.com/kokkos/kokkos) and checkout the clang-cuda branch. In the little build line KOKKOS_PATH refers to the root path of your Kokkos clone. This is btw, the last issue we got with our non-experimental code in Kokkos. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs