-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can xm.xla_device still work at 8-core even when already called? #2268
Comments
Cannot. |
Thank you for your response.
I think the confusion when teaching single core vs multi-core, is that the package usage is slightly different. This is what is discussed in the official documentation (here). If we want to highlight both of these usages (ex: my kernel here) then it is impossible to do so in the same environment. I guess maybe there should be less focus in the documentation regarding a difference between single core and multiple core training. Instead, maybe the documentation should focus on just the multi-core training and mention single core as a special example as you mention. I might also rewrite my kernel accordingly. |
Yeah, I know our documentation has been written in that way, and should probably be revised to avoid users investing code in single core, which needs some rewriting for multi core. |
@dlibenzi Thank you for the clarification! |
There was an issue (just a Colab warning of using |
So I am aware that
xm.xla_device()
needs to be called in the spawned function and if it is called earlier (before spawning of the multiple processes) then the system assumes there is only one device. I am wondering if it is possible to have a feature where it is possible to callxm.xla_device()
before spawning (for example to do single-core experiments) and in the spawned processes (to do multiple core experiments. Like can there be a mode forxm.xla_device()
indicating single-core vs multiple-core. I ask because, currently it is impossible to demonstrate single-core and multiple-core functionality in the same notebook/program, and it would be nice to do so for tutorial purposes.The text was updated successfully, but these errors were encountered: