Control the work for one Stream Multiprocessor

Hi,

I am working with a cuda program which I managed to assign a work to one Stream Multiprocessor. For example, I have the works A and B and my GPU has 2 SMs (SM0 and SM1). Are there ways to assign the work A exactly to SM0 and the work B to SM1?

Can you suggest me some ways to do that?

Thanks for your help.