I have written a trivial kernel in which I declare my shared memory array as
extern shared float As;
In my kernel launch I specify the number_of_bytes of shared memory. I get the error “Unexpected address space” while compiling the kernel(to PTX). I am using fairly new version of LLVM from svn(3.3 in progress). Any ideas what I am doing wrong here ? the problem seems to be with extern keyword, but then how else am I gonna specify it?(Shared memory). Should I use a different LLVM build?
Config CUDA 5.0 , Nvidia Tesla C1060