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.
DEFAULT_DEVICE
1 parent 541087e commit 3bb3be9Copy full SHA for 3bb3be9
src/xla/Client.jl
@@ -16,10 +16,10 @@ function platform_name end
16
"""
17
DEFAULT_DEVICE :: Ref{Int}
18
19
-0-based index of default device to use, by default 0 (first available device).
+1-based index of default device to use, by default 1 (first available device).
20
21
-const DEFAULT_DEVICE = Ref{Int}(0)
+const DEFAULT_DEVICE = Ref{Int}(1)
22
23
function default_device(client::AbstractClient)
24
- return addressable_devices(client)[DEFAULT_DEVICE[] + 1]
+ return addressable_devices(client)[DEFAULT_DEVICE[]]
25
end
0 commit comments