How to apply multiprocessing with cuda?


I want to apply multiprocessing on some simple cuda-related problem as above(Jupyter Notebook). It ought to print out the tensor if everything goes well. However, nothing happens(even without any errors…) after running out all cells. And the ‘traditional’ method-----‘set_start_method(‘spawn’)’ didn’t help… I’m pretty eager to figure out the real problem.