Is it possible to use dynamically/statically allocated shared memory together?

Hi all,
I mean in global function I use dynamically allocated shared memory. The function also calls a device function, which has statically allocated shared memory. As follows:
global void f()
{
extern shared int a;

g();

}

device void g()
{
shared int b[3];
}

Hi all,
I mean in global function I use dynamically allocated shared memory. The function also calls a device function, which has statically allocated shared memory. As follows:
global void f()
{
extern shared int a;

g();

}

device void g()
{
shared int b[3];
}

Yes, that works with no problem at all.

Yes, that works with no problem at all.