[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
justin.holewinski at gmail.com
Wed Mar 20 08:03:44 PDT 2013
The problem you are seeing is because clang is putting the global variables
in address space 0, which in NVPTX means the generic address space. PTX
does not allow this, so the back-end *should* be printing an error for
you. Are you using trunk or 3.2?
Generally, clang won't be compatible with the CUDA Toolkit headers. If you
want to use the __constant__ modifier from CUDA in Clang, define it like so:
#define __constant__ __attribute__((address_space(2)))
On Mon, Mar 18, 2013 at 6:31 PM, upit <uday_pitambare at yahoo.com> wrote:
> Please find the .ll attached below . Yes, I am using the cuda_runtime.h
> the toolkit.
> - Uday
> View this message in context:
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev