Skip to content

Commit 9e4dea7

Browse files
committed
Fixed default TF32 only for cuda.
1 parent e534c7c commit 9e4dea7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

compute/xla/xla.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,8 @@ func NewWithOptions(config string, options pjrt.NamedValuesMap) (*Backend, error
166166
capabilities: Capabilities.Clone(),
167167
numDevices: len(client.AddressableDevices()),
168168

169-
// Use plugin.IsCUDA() to attempt to enable it if it thinks it's a CUDA backend.
170-
// But since Jax PJRT 0.9.X it hasn't been working anymore.
171-
DotGeneralUseTF32: false,
169+
// Enable TF32 by default for CUDA.
170+
DotGeneralUseTF32: isPluginType(pluginName, "cuda"),
172171
}
173172

174173
// Support "shared buffers":

0 commit comments

Comments
 (0)