Can some please clear me about the cudaSetDevice()?
In the programming guide pdf file, it was said:
cudaSetDevice() is used to select the device associated to the host thread:
A device must be selected before any global function or any function from Appendix D is called. If this is not done by an explicit call to cudaSetDevice(), device 0 is automatically selected and any subsequent explicit call to cudaSetDevice() will have no effect.
Can one device be switched to different CPU threads and share the device and const resources? Thanks!