On 12/01/2015 04:28 PM, Alexander Monakov wrote:
+/* __shared__ char *__nvptx_stacks[32]; */ +asm ("// BEGIN GLOBAL VAR DEF: __nvptx_stacks"); +asm (".visible .shared .u64 __nvptx_stacks[32];"); + +/* __shared__ unsigned __nvptx_uni[32]; */ +asm ("// BEGIN GLOBAL VAR DEF: __nvptx_uni"); +asm (".visible .shared .u32 __nvptx_uni[32];");
... doesn't look great to me. This is better done in assembly directly IMO. Bernd