I believe it’s allowed but how to do that. I found no hints in programming guide.
EDIT: constant memory can be used the same way as in CUDA. It failed due to my mistake.
EDIT: Just found the constant memory are not actually accessed. The data is not what I copied to device. I can declare constant memory in .cu file to be compile to ptx. I can also declare constant memory in the .cxx where context is initiate and bind it to a buffer. Both methods seem to work without runtime errors but they never access the real data.