Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gopjrt_installer
module
|
|
|
pjrt_installer
module
|
|
|
cbuffer
Package cbuffer provides a wrapper for a C/C++ buffer that can be used to transfer data in-between pjrt, xlabuilder and the user of the library.
|
Package cbuffer provides a wrapper for a C/C++ buffer that can be used to transfer data in-between pjrt, xlabuilder and the user of the library. |
|
cmd/copy_go_code
command
|
|
|
cmd/dtypes_codegen
command
codegen parses the pjrt_c_api.h and generates boilerplate code for creating the various C structures.
|
codegen parses the pjrt_c_api.h and generates boilerplate code for creating the various C structures. |
|
cmd/exec_hlo
command
exec_hlo is a trivial testing program to execute HLO programs that take as input only one value.
|
exec_hlo is a trivial testing program to execute HLO programs that take as input only one value. |
|
cmd/ops_generator
command
|
|
|
cmd/pjrt_codegen
command
pjrt_codegen copies prjt_c_api.h from github.com/openxla/xla source (pointed by XLA_SRC env variable), parses it and generates boilerplate code for creating the various C structures.
|
pjrt_codegen copies prjt_c_api.h from github.com/openxla/xla source (pointed by XLA_SRC env variable), parses it and generates boilerplate code for creating the various C structures. |
|
cmd/protoc_xla_protos
command
protoc_xla_protos compiles the .proto from the OpenXLA/XLA sources to subpackages of "github.com/gomlx/go-xla/internal/protos".
|
protoc_xla_protos compiles the .proto from the OpenXLA/XLA sources to subpackages of "github.com/gomlx/go-xla/internal/protos". |
|
cmd/strip_protos
command
|
|
|
cmd/xlabuilder_codegen
command
codegen parses the node_types.txt and generates boilerplate code both C and Go.
|
codegen parses the node_types.txt and generates boilerplate code both C and Go. |
|
must
Package must provide a set of functions that check for errors and panic on error.
|
Package must provide a set of functions that check for errors and panic on error. |
|
optypes
Package optypes defines OpType and lists the supported operations.
|
Package optypes defines OpType and lists the supported operations. |
|
pjrt/cpudynamictest
Package cpudynamictest is just a hack around Go's limitation to use CGO in tests and to avoid cyclic dependency.
|
Package cpudynamictest is just a hack around Go's limitation to use CGO in tests and to avoid cyclic dependency. |
|
pjrt/cpustatictest
Package cpustatictest is just a hack around Go's limitation to use CGO in tests and to avoid cyclic dependency.
|
Package cpustatictest is just a hack around Go's limitation to use CGO in tests and to avoid cyclic dependency. |
|
protos
Package protos is empty, it simply include a rule to generate all the sub-packages: one sub-package per XLA proto used in gopjrt.
|
Package protos is empty, it simply include a rule to generate all the sub-packages: one sub-package per XLA proto used in gopjrt. |
|
shapeinference
Package shapeinference calculates the shape resulting from operations and validates its inputs.
|
Package shapeinference calculates the shape resulting from operations and validates its inputs. |
|
utils
Package utils holds small utility types and functions used internally in stablehlo.
|
Package utils holds small utility types and functions used internally in stablehlo. |
|
pkg
|
|
|
installer
Package installer provides functionality to install PJRT plugins.
|
Package installer provides functionality to install PJRT plugins. |
|
pjrt
Package pjrt implements a Go wrapper for the PJRT_C_API.
|
Package pjrt implements a Go wrapper for the PJRT_C_API. |
|
pjrt/cpu/dynamic
Package dynamic will link (preload) a dynamically loaded library `libpjrt_c_api_cpu_dynamic`, that is used if the user requests a "cpu" plugin.
|
Package dynamic will link (preload) a dynamically loaded library `libpjrt_c_api_cpu_dynamic`, that is used if the user requests a "cpu" plugin. |
|
pjrt/cpu/static
Package static statically links a CPU PJRT plugin, and registers with the name "cpu".
|
Package static statically links a CPU PJRT plugin, and registers with the name "cpu". |
|
stablehlo
Package stablehlo helps build a ToStableHLO program (text format) to then be JIT-compiled and executed by PJRT (github.com/gomlx/go-xla/pkg/pjrt).
|
Package stablehlo helps build a ToStableHLO program (text format) to then be JIT-compiled and executed by PJRT (github.com/gomlx/go-xla/pkg/pjrt). |
|
types/dtypes/bfloat16
Package bfloat16 is a trivial implementation for the bfloat16 type, based on https://github.com/x448/float16 and the pending issue in https://github.com/x448/float16/issues/22
|
Package bfloat16 is a trivial implementation for the bfloat16 type, based on https://github.com/x448/float16 and the pending issue in https://github.com/x448/float16/issues/22 |
|
types/shapes
Package shapes defines Shape and DType and associated tools.
|
Package shapes defines Shape and DType and associated tools. |
|
types/shardy
Package shardy provides the types needed to define a distributed computation topology.
|
Package shardy provides the types needed to define a distributed computation topology. |
Click to show internal directories.
Click to hide internal directories.