Displaying 4 results from an estimated 4 matches for "__constant__".
Did you mean:
__constant
2013 Mar 20
2
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
OK. That helps.
It does flash a warning though
[DEVICE-C++] nbody.kernel.cpp
nbody.kernel.cpp:29:9: warning: '__constant__' macro redefined
#define __constant__ __attribute__((address_space(2)))
^
/opt/cuda/include/host_defines.h:183:9: note: previous definition is here
#define __constant__ \
^
1 warning generated.
Another question is
What about extern __shared__ ?
I can see that the error goes a...
2013 Mar 20
0
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
...ing 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
> from
> the toolkit.
> n...
2013 Mar 18
2
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
Please find the .ll attached below . Yes, I am using the cuda_runtime.h from
the toolkit.
nbody.kernel.ll
<http://llvm.1065342.n5.nabble.com/file/n56048/nbody.kernel.ll>
- Uday
--
View this message in context: http://llvm.1065342.n5.nabble.com/UNREACHABLE-executed-error-while-trying-to-generate-PTX-tp56026p56048.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Mar 20
0
[LLVMdev] UNREACHABLE executed! error while trying to generate PTX
On Wed, Mar 20, 2013 at 11:29 AM, upit <uday_pitambare at yahoo.com> wrote:
> OK. That helps.
> It does flash a warning though
>
> [DEVICE-C++] nbody.kernel.cpp
> nbody.kernel.cpp:29:9: warning: '__constant__' macro redefined
> #define __constant__ __attribute__((address_space(2)))
> ^
> /opt/cuda/include/host_defines.h:183:9: note: previous definition is here
> #define __constant__ \
> ^
> 1 warning generated.
>
> Another question is
> What about extern __...