We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
REACTANT_DEFAULT_DEVICE
1 parent 2c169ef commit 444cf6bCopy full SHA for 444cf6b
src/xla/Client.jl
@@ -15,6 +15,7 @@ function platform_name end
15
16
function default_device(client::AbstractClient)
17
return addressable_devices(client)[something(
18
- tryparse(Int, get(ENV, "REACTANT_DEFAULT_DEVICE", "1")), 1
+ # `REACTANT_DEFAULT_DEVICE` is interpreted as 0-based.
19
+ tryparse(Int, get(ENV, "REACTANT_DEFAULT_DEVICE", "0")) + 1, 1
20
)]
21
end
0 commit comments