Write in Shared Memory before launch a kernel

There is some function that do this?

No. Only kernel code can read from or write to shared memory.

Thx a lot.